~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Aaron Bentley
  • Date: 2005-11-17 05:14:54 UTC
  • mto: (1185.65.14 storage)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: aaron.bentley@utoronto.ca-20051117051454-e9ac1dd13766b978
Moved get_ancestry to RevisionStorage

Show diffs side-by-side

added added

removed removed

Lines of Context:
265
265
 
266
266
        return compare_trees(old_tree, new_tree)
267
267
 
268
 
    def get_ancestry(self, revision_id):
269
 
        """Return a list of revision-ids integrated by a revision.
270
 
        
271
 
        This currently returns a list, but the ordering is not guaranteed:
272
 
        treat it as a set.
273
 
        """
274
 
        raise NotImplementedError('get_ancestry is abstract')
275
 
 
276
268
    def revision_history(self):
277
269
        """Return sequence of revision hashes on to this branch."""
278
270
        raise NotImplementedError('revision_history is abstract')
769
761
 
770
762
        return compare_trees(old_tree, new_tree)
771
763
 
772
 
    def get_ancestry(self, revision_id):
773
 
        """See Branch.get_ancestry."""
774
 
        if revision_id is None:
775
 
            return [None]
776
 
        w = self.storage.get_inventory_weave()
777
 
        return [None] + map(w.idx_to_name,
778
 
                            w.inclusions([w.lookup(revision_id)]))
779
764
 
780
765
    @needs_read_lock
781
766
    def revision_history(self):