/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Marius Kruger
  • Date: 2007-02-16 06:16:11 UTC
  • mto: This revision was merged to the branch mainline in revision 2455.
  • Revision ID: amanic@gmail.com-20070216061611-sjscmgi4v5rozq6h
"bzr remove" and "bzr rm" will now remove the working file.
This has been done for consistency with svn and the unix rm command.

The old remove behaviour has been retained in the new command
"bzr unversion", which will just stop versioning the file,
but not delete it.
(Addressing Bug #82602)

Exisitng tests have been reworked and new tests were added to test these
changes properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
class TestMove(TestCaseWithTransport):
33
33
 
34
 
    def assertInWorkingTree(self,path):
35
 
        tree = workingtree.WorkingTree.open('.')
36
 
        self.assertIsNot(tree.path2id(path), None,
37
 
            path+' not in working tree.')
38
 
 
39
 
    def assertNotInWorkingTree(self,path):
40
 
        tree = workingtree.WorkingTree.open('.')
41
 
        self.assertIs(tree.path2id(path), None, path+' in working tree.')
42
 
 
43
34
    def assertMoved(self,from_path,to_path):
44
35
        """Assert that to_path is existing and versioned but from_path not. """
45
36
        self.failIfExists(from_path)