~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.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:
502
502
        # in bugs like #46635.  Any reason not to use/enhance compare_trees?
503
503
        # ADHB 11-07-2006
504
504
        mutter("Selecting files for commit with filter %s", self.specific_files)
505
 
        # iter_entries does not visit the ROOT_ID node so we need to call
506
 
        # self._emit_progress_update once by hand.
 
505
        # at this point we dont copy the root entry:
 
506
        entries = self.work_inv.iter_entries()
 
507
        entries.next()
507
508
        self._emit_progress_update()
508
 
        for path, new_ie in self.work_inv.iter_entries():
 
509
        for path, new_ie in entries:
509
510
            self._emit_progress_update()
510
511
            file_id = new_ie.file_id
511
512
            mutter('check %s {%s}', path, file_id)