~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Robert Collins
  • Date: 2006-07-21 01:37:47 UTC
  • mto: (1852.9.1 Tree.compare().)
  • mto: This revision was merged to the branch mainline in revision 1890.
  • Revision ID: robertc@robertcollins.net-20060721013747-9752a96bc423aa76
Make iter(Tree) consistent for all tree types.

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
 
222
222
    def list_files(self):
223
223
        # The only files returned by this are those from the version
224
 
        for path, entry in self.inventory.iter_entries():
 
224
        entries = self.inventory.iter_entries()
 
225
        # skip the root for compatability with the current apis.
 
226
        entries.next()
 
227
        for path, entry in entries:
225
228
            yield path, 'V', entry.kind, entry.file_id, entry
226
229
 
227
230
    def get_symlink_target(self, file_id):