~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Ian Clatworthy
  • Date: 2008-04-23 05:12:12 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-20080423051212-qmlwrnkd2yxjjaci
incorporate jameinel's review feedback

Show diffs side-by-side

added added

removed removed

Lines of Context:
429
429
        import sys
430
430
        sys.stdout.writelines(filtered_output_lines(
431
431
            self.get_file_lines(file_id),
432
 
            self._content_filter_stack(self.id2path(file_id))))
 
432
            self._content_filter_stack(file_id=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):
 
506
    def _content_filter_stack(self, path=None, file_id=None):
507
507
        """The stack of content filters for a path.
508
508
        
509
509
        Readers will be applied in first-to-last order.
510
510
        Writers will be applied in last-to-first order.
 
511
        Either the path or the file-id needs to be provided.
 
512
 
 
513
        :param path: path relative to the root of the tree
 
514
            or None if unknown
 
515
        :param file_id: file_id or None if unknown
 
516
        :return: the list of filters - [] if there are none
511
517
        """
512
 
        return None
 
518
        return []
513
519
 
514
520
 
515
521
class EmptyTree(Tree):