~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-07-20 08:10:24 UTC
  • mfrom: (2637.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070720081024-5xhlp7r8ufwxt6nf
(Kent Gibson) Update update's help

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):
 
610
    def get_ancestry(self, version_ids, topo_sorted=True):
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
 
894
898
    @deprecated_method(zero_eight)
895
899
    def numversions(self):
896
900
        """How many versions are in this weave?