~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.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:
271
271
            if expected_sha1 != sha1:
272
272
                raise errors.VersionedFileInvalidChecksum(version)
273
273
 
 
274
    @deprecated_method(one_four)
274
275
    def get_sha1(self, version_id):
275
276
        """Get the stored sha1 sum for the given revision.
276
277
        
277
278
        :param version_id: The name of the version to lookup
278
279
        """
279
 
        raise NotImplementedError(self.get_sha1)
 
280
        return self.get_sha1s([version_id])[0]
280
281
 
281
282
    def get_sha1s(self, version_ids):
282
283
        """Get the stored sha1 sums for the given revisions.