/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/filter_tree.py

Add follow_tree_references argument to Tree.iter_entries_by_dir.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    def is_executable(self, path):
64
64
        return self.backing_tree.is_executable(path)
65
65
 
66
 
    def iter_entries_by_dir(self, specific_files=None):
 
66
    def iter_entries_by_dir(self, specific_files=None, follow_tree_references=False):
67
67
        # NB: This simply returns the parent tree's entries; the length may be
68
68
        # wrong but it can't easily be calculated without filtering the whole
69
69
        # text.  Currently all callers cope with this; perhaps they should be
70
70
        # updated to a narrower interface that only provides things guaranteed
71
71
        # cheaply available across all trees. -- mbp 20110705
72
72
        return self.backing_tree.iter_entries_by_dir(
73
 
            specific_files=specific_files)
 
73
            specific_files=specific_files, follow_tree_references=follow_tree_references)
74
74
 
75
75
    def lock_read(self):
76
76
        return self.backing_tree.lock_read()