~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge.py

  • Committer: Vincent Ladeuil
  • Date: 2009-07-10 08:33:11 UTC
  • mfrom: (4503.1.3 tree-has-changes)
  • mto: This revision was merged to the branch mainline in revision 4525.
  • Revision ID: v.ladeuil+lp@free.fr-20090710083311-ulnr2ic6lvevjr3a
Quicker check for changes in mutable trees

Show diffs side-by-side

added added

removed removed

Lines of Context:
243
243
 
244
244
        if self.other_rev_id is None:
245
245
            other_basis_tree = self.revision_tree(self.other_basis)
246
 
            changes = other_basis_tree.changes_from(self.other_tree)
247
 
            if changes.has_changed():
 
246
            if other_basis_tree.has_changes(self.other_tree):
248
247
                raise WorkingTreeNotRevision(self.this_tree)
249
248
            other_rev_id = self.other_basis
250
249
            self.other_tree = other_basis_tree
276
275
            basis_tree = self.revision_tree(self.this_tree.last_revision())
277
276
        except errors.NoSuchRevision:
278
277
            basis_tree = self.this_tree.basis_tree()
279
 
        changes = self.this_tree.changes_from(basis_tree)
280
 
        if not changes.has_changed():
 
278
        if not self.this_tree.has_changes(basis_tree):
281
279
            self.this_rev_id = self.this_basis
282
280
 
283
281
    def set_interesting_files(self, file_list):