/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: Robert Collins
  • Date: 2007-09-28 07:05:56 UTC
  • mto: (2592.3.161 repository)
  • mto: This revision was merged to the branch mainline in revision 2880.
  • Revision ID: robertc@robertcollins.net-20070928070556-lxsw7332u3kdltwz
* The CommitBuilder method ``record_entry_contents`` now returns summary
  information about the effect of the commit on the repository. This tuple
  contains an inventory delta item if the entry changed from the basis, and a
  boolean indicating whether a new file graph node was recorded.
  (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
661
661
                # required after that changes.
662
662
                if len(self.parents) > 1:
663
663
                    ie.revision = None
664
 
                if self.builder.record_entry_contents(ie, self.parent_invs, path,
665
 
                    self.basis_tree):
 
664
                delta, version_recorded = self.builder.record_entry_contents(
 
665
                    ie, self.parent_invs, path, self.basis_tree)
 
666
                if version_recorded:
666
667
                    self.any_entries_changed = True
667
668
 
668
669
        # note that deletes have occurred
764
765
        else:
765
766
            ie = existing_ie.copy()
766
767
            ie.revision = None
767
 
        if self.builder.record_entry_contents(ie, self.parent_invs, 
768
 
            path, self.work_tree):
 
768
        delta, version_recorded = self.builder.record_entry_contents(ie,
 
769
            self.parent_invs, path, self.work_tree)
 
770
        if version_recorded:
769
771
            self.any_entries_changed = True
770
772
        if report_changes:
771
773
            self._report_change(ie, path)