~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Aaron Bentley
  • Date: 2007-06-21 02:33:43 UTC
  • mfrom: (2530.1.1 get_ancestry_no_topo)
  • mto: This revision was merged to the branch mainline in revision 2542.
  • Revision ID: aaron.bentley@utoronto.ca-20070621023343-3f3oy8iszatpjcui
Merge of not-sorting-ancestry branch

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):