151
151
"""Test two modes of operation for mv"""
152
152
from bzrlib.branch import Branch
153
153
b = Branch('.', init=True)
154
154
self.build_tree(['a', 'c', 'subdir/'])
155
156
self.run_bzr('mv', 'a', 'b')
156
157
self.run_bzr('mv', 'b', 'subdir')
157
158
self.run_bzr('mv', 'subdir/b', 'a')
158
self.run_bzr('mv', 'a', 'b', 'subdir')
159
self.run_bzr('mv', 'a', 'c', 'subdir')
159
160
self.run_bzr('mv', 'subdir/a', 'subdir/newa')
161
163
def test_main_version(self):
162
164
"""Check output from version command and master option is reasonable"""
163
165
# output is intentionally passed through to stdout so that we