~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/dirstate.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:
215
215
    cache_utf8,
216
216
    debug,
217
217
    errors,
 
218
    filters,
218
219
    inventory,
219
220
    lock,
220
221
    osutils,
341
342
        if 'hashcache' in debug.debug_flags:
342
343
            self._sha1_file = self._sha1_file_and_mutter
343
344
        else:
344
 
            self._sha1_file = osutils.sha_file_by_name
 
345
            self._sha1_file = filters.sha_file_by_name
345
346
        # These two attributes provide a simple cache for lookups into the
346
347
        # dirstate in-memory vectors. By probing respectively for the last
347
348
        # block, and for the next entry, we save nearly 2 bisections per path
1547
1548
        # when -Dhashcache is turned on, this is monkey-patched in to log
1548
1549
        # file reads
1549
1550
        trace.mutter("dirstate sha1 " + abspath)
1550
 
        return osutils.sha_file_by_name(abspath)
 
1551
        return filters.sha_file_by_name(abspath)
1551
1552
 
1552
1553
    def _is_executable(self, mode, old_executable):
1553
1554
        """Is this file executable?"""