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

Update to replaced parent checking api bzrlib/merge.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
655
655
        self.set_parent_ids(self.get_parent_ids() + [revision_id])
656
656
 
657
657
    @needs_write_lock
 
658
    def add_parent_tree(self, parent_tuple):
 
659
        """Add revision_id, tree tuple as a parent.
 
660
 
 
661
        This is equivalent to retrieving the current list of parent trees
 
662
        and setting the list to its value plus parent_tuple. See also
 
663
        add_parent_tree_id - if you only have a parent id available it will be
 
664
        simpler to use that api. If you have the parent already available, using
 
665
        this api is preferred.
 
666
 
 
667
        :param parent_tuple: The (revision id, tree) to add to the parent list.             If the revision_id is a ghost, pass None for the tree.
 
668
        """
 
669
        self.set_parent_ids(self.get_parent_ids() + [parent_tuple[0]])
 
670
 
 
671
    @needs_write_lock
658
672
    def add_pending_merge(self, *revision_ids):
659
673
        # TODO: Perhaps should check at this point that the
660
674
        # history of the revision is actually present?