173
175
assert backtick("bzr revno") == '0\n'
177
progress("add first revision")
178
runcmd(["bzr", "commit", "-m", 'add first revision'])
180
progress("more complex renames")
182
runcmd("bzr rename hello.txt sub1", 1)
183
runcmd("bzr rename hello.txt sub1/hello.txt", 1)
184
runcmd("bzr move hello.txt sub1", 1)
186
runcmd("bzr add sub1")
187
runcmd("bzr rename sub1 sub2")
188
runcmd("bzr move hello.txt sub2")
190
assert exists("sub2")
191
assert exists("sub2/hello.txt")
192
assert not exists("sub1")
193
assert not exists("hello.txt")
195
runcmd(['bzr', 'commit', '-m', 'commit with some things moved to subdirs'])
198
runcmd('bzr add sub1')
199
runcmd('bzr move sub2/hello.txt sub1')
200
assert not exists('sub2/hello.txt')
201
assert exists('sub1/hello.txt')
202
runcmd('bzr move sub2 sub1')
203
assert not exists('sub2')
204
assert exists('sub1/sub2')
206
runcmd(['bzr', 'commit', '-m', 'rename nested subdirectories'])
209
runcmd('bzr move ../hello.txt .')
210
assert exists('../hello.txt')
211
runcmd(['bzr', 'commit', '-m', 'move to parent directory'])
177
216
progress("all tests passed!")