/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/transform.py

Add follow_tree_references argument to Tree.iter_entries_by_dir.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2218
2218
        for entry, trans_id in self._make_inv_entries(todo):
2219
2219
            yield entry
2220
2220
 
2221
 
    def iter_entries_by_dir(self, specific_files=None):
 
2221
    def iter_entries_by_dir(self, specific_files=None, follow_tree_references=False):
 
2222
        if follow_tree_references:
 
2223
            raise NotImplementedError(
 
2224
                'follow tree references not yet supported')
 
2225
 
2222
2226
        # This may not be a maximally efficient implementation, but it is
2223
2227
        # reasonably straightforward.  An implementation that grafts the
2224
2228
        # TreeTransform changes onto the tree's iter_entries_by_dir results
2242
2246
        path_entries.sort()
2243
2247
        return path_entries
2244
2248
 
2245
 
    def list_files(self, include_root=False, from_dir=None, recursive=True):
 
2249
    def list_files(self, include_root=False, from_dir=None, recursive=True,
 
2250
                   follow_tree_references=False):
2246
2251
        """See WorkingTree.list_files."""
 
2252
        if follow_tree_references:
 
2253
            raise NotImplementedError(
 
2254
                'follow tree references not yet supported')
 
2255
 
2247
2256
        # XXX This should behave like WorkingTree.list_files, but is really
2248
2257
        # more like RevisionTree.list_files.
2249
2258
        if from_dir == '.':