~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hashcache.py

  • Committer: Ian Clatworthy
  • Date: 2008-04-17 08:21:14 UTC
  • mto: (4171.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4173.
  • Revision ID: ian.clatworthy@canonical.com-20080417082114-76imbiarcbj16ov3
first cut at working tree content filtering

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
import os, stat, time
33
33
import sha
34
34
 
35
 
from bzrlib.osutils import sha_file, pathjoin, safe_unicode
 
35
from bzrlib.filters import sha_file_by_name
 
36
from bzrlib.osutils import pathjoin, safe_unicode
36
37
from bzrlib.trace import mutter, warning
37
38
from bzrlib.atomicfile import AtomicFile
38
39
from bzrlib.errors import BzrError
201
202
 
202
203
    def _really_sha1_file(self, abspath):
203
204
        """Calculate the SHA1 of a file by reading the full text"""
204
 
        return sha_file(file(abspath, 'rb', buffering=65000))
 
205
        return sha_file_by_name(abspath)
205
206
        
206
207
    def write(self):
207
208
        """Write contents of cache to file."""