~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-21 05:22:37 UTC
  • mfrom: (2490.2.33 graphwalker)
  • Revision ID: pqm@pqm.ubuntu.com-20070621052237-2phm1z5dg4arrwnk
Avoid topological sorting in Repository.get_ancestry where possible

Show diffs side-by-side

added added

removed removed

Lines of Context:
302
302
        """
303
303
        raise NotImplementedError(self.get_lines)
304
304
 
305
 
    def get_ancestry(self, version_ids):
 
305
    def get_ancestry(self, version_ids, topo_sorted=True):
306
306
        """Return a list of all ancestors of given version(s). This
307
307
        will not include the null revision.
308
308
 
 
309
        This list will not be topologically sorted if topo_sorted=False is
 
310
        passed.
 
311
 
309
312
        Must raise RevisionNotPresent if any of the given versions are
310
313
        not present in file history."""
311
314
        if isinstance(version_ids, basestring):