~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_mv.py

  • Committer: Patch Queue Manager
  • Date: 2011-10-18 14:50:22 UTC
  • mfrom: (6220.3.5 809728-move-root)
  • Revision ID: pqm@pqm.ubuntu.com-20111018145022-q5crzwqjwu6z33ue
(jr) ``bzr mv`` does not crash when attempting to move the root of a branch.
 (Jonathan Riddell, #809728) (Jonathan Riddell)

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
        self.run_bzr('move a b')
188
188
        self.run_bzr('rename b a')
189
189
 
 
190
    def test_mv_no_root(self):
 
191
        tree = self.make_branch_and_tree('.')
 
192
        self.run_bzr_error(
 
193
            ["bzr: ERROR: can not move root of branch"],
 
194
            'mv . a')
 
195
 
190
196
    def test_mv_through_symlinks(self):
191
197
        self.requireFeature(SymlinkFeature)
192
198
        tree = self.make_branch_and_tree('.')