~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.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:
102
102
    splitpath,
103
103
    supports_executable,
104
104
    )
 
105
from bzrlib.filters import filtered_input, filters_for_path
105
106
from bzrlib.trace import mutter, note
106
107
from bzrlib.transport.local import LocalTransport
107
108
from bzrlib.progress import DummyProgress, ProgressPhase
492
493
        return self.get_file(file_id).read()
493
494
 
494
495
    def get_file_byname(self, filename):
495
 
        return file(self.abspath(filename), 'rb')
 
496
        path = self.abspath(filename)
 
497
        filters = filters_for_path(path)
 
498
        return filtered_input(file(path, 'rb'), filters)
496
499
 
497
500
    @needs_read_lock
498
501
    def annotate_iter(self, file_id, default_revision=CURRENT_REVISION):