~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

  • Committer: Robert Collins
  • Date: 2008-04-08 03:39:43 UTC
  • mto: This revision was merged to the branch mainline in revision 3350.
  • Revision ID: robertc@robertcollins.net-20080408033943-ihbgs5wyqnh61bit
 * ``VersionedFile.get_sha1`` is deprecated, please use
   ``VersionedFile.get_sha1s``. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
688
688
                       expected_sha1, measured_sha1))
689
689
        return result
690
690
 
691
 
    def get_sha1(self, version_id):
692
 
        """See VersionedFile.get_sha1()."""
693
 
        return self._sha1s[self._lookup(version_id)]
694
 
 
695
691
    def get_sha1s(self, version_ids):
696
692
        """See VersionedFile.get_sha1s()."""
697
693
        return [self._sha1s[self._lookup(v)] for v in version_ids]