~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Ian Clatworthy
  • Date: 2008-04-17 14:10:33 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-20080417141033-0fnc7oe07535rw90
make content filter lookup a tree responsibility

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    )
32
32
from bzrlib.decorators import needs_read_lock
33
33
from bzrlib.errors import BzrError, BzrCheckError
34
 
from bzrlib.filters import filtered_output_lines, filters_for_path
 
34
from bzrlib.filters import filtered_output_lines
35
35
from bzrlib import errors
36
36
from bzrlib.inventory import Inventory, InventoryFile
37
37
from bzrlib.inter import InterObject
429
429
        import sys
430
430
        sys.stdout.writelines(filtered_output_lines(
431
431
            self.get_file_lines(file_id),
432
 
            filters_for_path(self.id2path(file_id))))
 
432
            self._content_filter_stack(self.id2path(file_id))))
433
433
 
434
434
    def lock_read(self):
435
435
        pass
503
503
        """
504
504
        raise NotImplementedError(self.walkdirs)
505
505
 
 
506
    def _content_filter_stack(self, path):
 
507
        """The stack of content filters for a path.
 
508
        
 
509
        Readers will be applied in first-to-last order.
 
510
        Writers will be applied in last-to-first order.
 
511
        """
 
512
        return None
 
513
 
506
514
 
507
515
class EmptyTree(Tree):
508
516