~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/reconfigure.py

  • Committer: Martin Pool
  • Date: 2009-07-24 03:15:56 UTC
  • mfrom: (4565 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4566.
  • Revision ID: mbp@sourcefrog.net-20090724031556-5zyef6f1ixtn6r3z
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
    def _check(self):
267
267
        """Raise if reconfiguration would destroy local changes"""
268
268
        if self._destroy_tree:
269
 
            changes = self.tree.changes_from(self.tree.basis_tree())
270
 
            if changes.has_changed():
 
269
            # XXX: What about pending merges ? -- vila 20090629
 
270
            if self.tree.has_changes(self.tree.basis_tree()):
271
271
                raise errors.UncommittedChanges(self.tree)
272
272
        if self._create_reference and self.local_branch is not None:
273
273
            reference_branch = branch.Branch.open(self._select_bind_location())