~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-18 05:22:35 UTC
  • mfrom: (1551.15.27 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070618052235-mvns8j28szyzscy0
Turn list-weave into list-versionedfile

Show diffs side-by-side

added added

removed removed

Lines of Context:
607
607
        else:
608
608
            return self.get_ancestry(version_ids)
609
609
 
610
 
    def get_ancestry(self, version_ids, topo_sorted=True):
 
610
    def get_ancestry(self, version_ids):
611
611
        """See VersionedFile.get_ancestry."""
612
612
        if isinstance(version_ids, basestring):
613
613
            version_ids = [version_ids]
891
891
        """See VersionedFile.get_sha1()."""
892
892
        return self._sha1s[self._lookup(version_id)]
893
893
 
894
 
    def get_sha1s(self, version_ids):
895
 
        """See VersionedFile.get_sha1s()."""
896
 
        return [self._sha1s[self._lookup(v)] for v in version_ids]
897
 
 
898
894
    @deprecated_method(zero_eight)
899
895
    def numversions(self):
900
896
        """How many versions are in this weave?