~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.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:
595
595
        # We can't check the length, because Weave doesn't store that
596
596
        # information, and the whole point of looking at the weave's
597
597
        # sha1sum is that we don't have to extract the text.
598
 
        if self.text_sha1 != w.get_sha1(self.revision):
 
598
        if self.text_sha1 != w.get_sha1s([self.revision])[0]:
599
599
            raise BzrCheckError('text {%s} version {%s} wrong sha1' 
600
600
                                % (self.file_id, self.revision))
601
601
        checker.checked_texts[t] = self.text_sha1