~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Aaron Bentley
  • Date: 2007-06-17 17:07:04 UTC
  • mto: (2490.2.32 graphwalker)
  • mto: This revision was merged to the branch mainline in revision 2542.
  • Revision ID: aaron.bentley@utoronto.ca-20070617170704-z3xbz0t5nqddnyeo
Make topological sorting optional for get_ancestry

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 sorted=False is passed.
 
310
 
309
311
        Must raise RevisionNotPresent if any of the given versions are
310
312
        not present in file history."""
311
313
        if isinstance(version_ids, basestring):