[Pkg-bazaar-commits] ./bzr/unstable r305: testbzr: test renames
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 07:43:50 UTC 2009
------------------------------------------------------------
revno: 305
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Thu 2005-04-28 19:48:28 +1000
message:
testbzr: test renames
modified:
testbzr
-------------- next part --------------
=== modified file 'testbzr'
--- a/testbzr 2005-04-28 09:45:20 +0000
+++ b/testbzr 2005-04-28 09:48:28 +0000
@@ -151,12 +151,18 @@
out = backtick("bzr status --all").replace('\r', '')
assert out == "? test.txt\n"
+ progress("can't rename unversioned file")
+ runcmd("bzr rename test.txt new-test.txt", 1)
+
progress("adding a file")
runcmd("bzr add test.txt")
assert backtick("bzr unknowns") == ''
assert backtick("bzr status --all").replace('\r', '') == "A test.txt\n"
+ progress("rename newly-added file")
+ runcmd("bzr rename test.txt hello.txt")
+
cd('..')
progress("all tests passed!")
More information about the Pkg-bazaar-commits
mailing list