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/'])
156
155
self.run_bzr('mv', 'a', 'b')
157
156
self.run_bzr('mv', 'b', 'subdir')
158
157
self.run_bzr('mv', 'subdir/b', 'a')
159
self.run_bzr('mv', 'a', 'c', 'subdir')
158
self.run_bzr('mv', 'a', 'b', 'subdir')
160
159
self.run_bzr('mv', 'subdir/a', 'subdir/newa')
163
161
def test_main_version(self):
164
162
"""Check output from version command and master option is reasonable"""
165
163
# output is intentionally passed through to stdout so that we