~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

Allow compare_trees to list root

Show diffs side-by-side

added added

removed removed

Lines of Context:
693
693
        else:
694
694
            return '?'
695
695
 
696
 
    def list_files(self):
 
696
    def list_files(self, include_root=False):
697
697
        """Recursively list all files as (path, class, kind, id, entry).
698
698
 
699
699
        Lists, but does not descend into unversioned directories.
722
722
        # list and just reverse() them.
723
723
        children = collections.deque(children)
724
724
        stack = [(inv.root.file_id, u'', self.basedir, children)]
 
725
        if include_root:
 
726
            yield u'', 'V', 'directory', inv.root.file_id, inv.root
725
727
        while stack:
726
728
            from_dir_id, from_dir_relpath, from_dir_abspath, children = stack[-1]
727
729