~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: 2006-04-20 02:28:21 UTC
  • mfrom: (1666.1.10 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060420022821-4337b8fa4942d8fe
Make knits the default format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
463
463
        """
464
464
 
465
465
        assert isinstance(version_id, basestring)
 
466
        self._check_lines_not_unicode(lines)
 
467
        self._check_lines_are_lines(lines)
466
468
        if not sha1:
467
469
            sha1 = sha_strings(lines)
468
470
        if version_id in self._name_map:
886
888
                       expected_sha1, measured_sha1))
887
889
        return result
888
890
 
889
 
    def get_sha1(self, name):
890
 
        """Get the stored sha1 sum for the given revision.
891
 
        
892
 
        :param name: The name of the version to lookup
893
 
        """
894
 
        return self._sha1s[self._lookup(name)]
 
891
    def get_sha1(self, version_id):
 
892
        """See VersionedFile.get_sha1()."""
 
893
        return self._sha1s[self._lookup(version_id)]
895
894
 
896
895
    @deprecated_method(zero_eight)
897
896
    def numversions(self):