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

  • Committer: Aaron Bentley
  • Date: 2006-08-08 17:53:22 UTC
  • mto: (1910.2.43 format-bumps)
  • mto: This revision was merged to the branch mainline in revision 1922.
  • Revision ID: abentley@panoramicfeedback.com-20060808175322-4b34e7b73ca235d1
Support old CommitBuilders

Show diffs side-by-side

added added

removed removed

Lines of Context:
505
505
        # in bugs like #46635.  Any reason not to use/enhance Tree.changes_from?
506
506
        # ADHB 11-07-2006
507
507
        mutter("Selecting files for commit with filter %s", self.specific_files)
508
 
        for path, new_ie in self.work_inv.iter_entries():
 
508
        entries = self.work_inv.iter_entries()
 
509
        if not self.builder.record_root_entry:
 
510
            warnings.warn('CommitBuilders should support recording the root'
 
511
                ' entry as of bzr 0.10.', DeprecationWarning, stacklevel=2)
 
512
            self.builder.new_inventory.add(self.basis_inv.root.copy())
 
513
            entries.next()
 
514
            self._emit_progress_update()
 
515
        for path, new_ie in entries:
509
516
            self._emit_progress_update()
510
517
            file_id = new_ie.file_id
511
518
            # mutter('check %s {%s}', path, file_id)