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

Add an explicit exception since tree.list_files() requires a lock (at least for dirstate

Show diffs side-by-side

added added

removed removed

Lines of Context:
879
879
 
880
880
        Skips the control directory.
881
881
        """
 
882
        # list_files is an iterator, so @needs_read_lock doesn't work properly
 
883
        # with it. So callers should be careful to always read_lock the tree.
 
884
        if not self.is_locked():
 
885
            raise errors.ObjectNotLocked(self)
 
886
 
882
887
        inv = self.inventory
883
888
        if include_root is True:
884
889
            yield ('', 'V', 'directory', inv.root.file_id, inv.root)