~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

  • Committer: Robert Collins
  • Date: 2006-04-19 23:32:08 UTC
  • mto: (1711.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: robertc@robertcollins.net-20060419233208-2ed6906796994316
Make knit the default format.
Adjust affect tests to either have knit specific values or to be more generic,
as appropriate.
Disable all SFTP prefetching for known paramikos - direct readv support is now
a TODO.

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:
839
841
                       expected_sha1, measured_sha1))
840
842
        return result
841
843
 
842
 
    def get_sha1(self, name):
843
 
        """Get the stored sha1 sum for the given revision.
844
 
        
845
 
        :param name: The name of the version to lookup
846
 
        """
847
 
        return self._sha1s[self._lookup(name)]
 
844
    def get_sha1(self, version_id):
 
845
        """See VersionedFile.get_sha1()."""
 
846
        return self._sha1s[self._lookup(version_id)]
848
847
 
849
848
    @deprecated_method(zero_eight)
850
849
    def numversions(self):