/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_parents.py

  • Committer: Robert Collins
  • Date: 2006-08-25 02:21:46 UTC
  • mto: (1908.6.9 use set_parent_trees.)
  • mto: This revision was merged to the branch mainline in revision 1972.
  • Revision ID: robertc@robertcollins.net-20060825022146-6e344ca329c52a6e
Adding a parent when the first is a ghost already should not require forcing it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
        tree = self.make_branch_and_tree('.')
150
150
        tree.add_parent_tree_id('first-revision', allow_leftmost_as_ghost=True)
151
151
        self.assertConsistentParents(['first-revision'], tree)
 
152
 
 
153
    def test_add_second_parent_id_with_ghost_first(self):
 
154
        """Test adding the second parent when the first is a ghost."""
 
155
        tree = self.make_branch_and_tree('.')
 
156
        tree.add_parent_tree_id('first-revision', allow_leftmost_as_ghost=True)
 
157
        tree.add_parent_tree_id('second')
 
158
        self.assertConsistentParents(['first-revision', 'second'], tree)
152
159
        
153
160
    def test_add_second_parent_id(self):
154
161
        """Test adding the second parent id"""