/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 bzrlib/tree.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    """
55
55
    
56
56
    def changes_from(self, other, want_unchanged=False, specific_files=None,
57
 
        extra_trees=None, require_versioned=False):
 
57
        extra_trees=None, require_versioned=False, include_root=False):
58
58
        """Return a TreeDelta of the changes from other to this tree.
59
59
 
60
60
        :param other: A tree to compare with.
81
81
            specific_files=specific_files,
82
82
            extra_trees=extra_trees,
83
83
            require_versioned=require_versioned,
 
84
            include_root=include_root
84
85
            )
85
86
    
86
87
    def conflicts(self):
217
218
class EmptyTree(Tree):
218
219
 
219
220
    def __init__(self):
220
 
        self._inventory = Inventory()
 
221
        self._inventory = Inventory(root_id=None)
221
222
        warn('EmptyTree is deprecated as of bzr 0.9 please use '
222
223
            'repository.revision_tree instead.',
223
224
            DeprecationWarning, stacklevel=2)
235
236
        assert self._inventory[file_id].kind == "directory"
236
237
        return "directory"
237
238
 
238
 
    def list_files(self):
 
239
    def list_files(self, include_root=False):
239
240
        return iter([])
240
241
    
241
242
    def __contains__(self, file_id):
398
399
 
399
400
    @needs_read_lock
400
401
    def compare(self, want_unchanged=False, specific_files=None,
401
 
        extra_trees=None, require_versioned=False):
 
402
        extra_trees=None, require_versioned=False, include_root=False):
402
403
        """Return the changes from source to target.
403
404
 
404
405
        :return: A TreeDelta.
426
427
            # _compare_trees would think we want a complete delta
427
428
            return delta.TreeDelta()
428
429
        return delta._compare_trees(self.source, self.target, want_unchanged,
429
 
            specific_file_ids)
 
430
            specific_file_ids, include_root)