~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Aaron Bentley
  • Date: 2007-06-21 05:35:27 UTC
  • mfrom: (2542 +trunk)
  • mto: (2520.5.2 bzr.mpbundle)
  • mto: This revision was merged to the branch mainline in revision 2631.
  • Revision ID: aaron.bentley@utoronto.ca-20070621053527-rhs3b3u0ozpbr86v
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
829
829
            yield RevisionTree(self, inv, revision_id)
830
830
 
831
831
    @needs_read_lock
832
 
    def get_ancestry(self, revision_id):
 
832
    def get_ancestry(self, revision_id, topo_sorted=True):
833
833
        """Return a list of revision-ids integrated by a revision.
834
834
 
835
835
        The first element of the list is always None, indicating the origin 
844
844
        if not self.has_revision(revision_id):
845
845
            raise errors.NoSuchRevision(self, revision_id)
846
846
        w = self.get_inventory_weave()
847
 
        candidates = w.get_ancestry(revision_id)
 
847
        candidates = w.get_ancestry(revision_id, topo_sorted)
848
848
        return [None] + candidates # self._eliminate_revisions_not_present(candidates)
849
849
 
850
850
    @needs_read_lock