/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/workingtree_implementations/test_move.py

  • Committer: Jelmer Vernooij
  • Date: 2009-01-20 16:07:55 UTC
  • mfrom: (3946.2.1 bzr.dev)
  • mto: (3920.2.35 dpush)
  • mto: This revision was merged to the branch mainline in revision 4281.
  • Revision ID: jelmer@samba.org-20090120160755-9v9advsk6zevtggg
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        actual = self.get_tree_layout(tree)
44
44
        self.assertEqual(expected, actual)
45
45
 
 
46
    def test_move_via_rm_and_add(self):
 
47
        """Move by remove and add-with-id"""
 
48
        self.build_tree(['a1', 'b1'])
 
49
        tree = self.make_branch_and_tree('.')
 
50
        tree.add(['a1'], ids=['a1-id'])
 
51
        tree.commit('initial commit')
 
52
        tree.remove('a1', force=True, keep_files=False)
 
53
        tree.add(['b1'], ids=['a1-id'])
 
54
        tree._validate()
 
55
 
46
56
    def test_move_correct_call_named(self):
47
57
        """tree.move has the deprecated parameter 'to_name'.
48
58
        It has been replaced by 'to_dir' for consistency.