~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to NEWS

  • Committer: Vincent Ladeuil
  • Date: 2009-10-06 14:40:37 UTC
  • mto: (4728.1.2 integration)
  • mto: This revision was merged to the branch mainline in revision 4731.
  • Revision ID: v.ladeuil+lp@free.fr-20091006144037-o76rgosv9hj3td0y
Simplify mutable_tree.has_changes() and update call sites.

* bzrlib/workingtree.py:
(WorkingTree.merge_from_branch): Add a force parameter. Replace
the check_basis() call by the corresponding code, taken the new
'force' parameter into account.

* bzrlib/tests/test_status.py:
(TestStatus.make_multiple_pending_tree): Add force=True on
supplementary merges.

* bzrlib/tests/test_reconfigure.py:
(TestReconfigure): Add a test for pending merges.

* bzrlib/tests/test_msgeditor.py:
(MsgEditorTest.make_multiple_pending_tree): Add force=True on
supplementary merges.

* bzrlib/tests/blackbox/test_uncommit.py:
(TestUncommit.test_uncommit_octopus_merge): Add force=True on
supplementary merges.

* bzrlib/send.py:
(send): Use the simplified has_changes(). Fix typo in comment too.

* bzrlib/reconfigure.py:
(Reconfigure._check): Use the simplified has_changes().

* bzrlib/mutabletree.py:
(MutableTree.has_changes): Make the tree parameter optional but
retain it for tests. Add a pending merges check.

* bzrlib/merge.py:
(Merger.ensure_revision_trees, Merger.file_revisions,
Merger.check_basis, Merger.compare_basis): Deprecate.

* bzrlib/bundle/apply_bundle.py:
(merge_bundle): Replace the check_basis() call by the
corresponding code.

* bzrlib/builtins.py:
(cmd_remove_tree.run, cmd_push.run, cmd_merge.run): Use the
simplified has_changes().
(cmd_merge.run): Replace the check_basis call() by the corresponding
code (minus the alredy done has_changes() check).

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
API Changes
158
158
***********
159
159
 
160
 
* ``ProgressTask.note`` is deprecated.
161
 
  (Martin Pool)
162
 
 
163
160
* ``bzrlib.user_encoding`` has been removed; use
164
161
  ``bzrlib.osutils.get_user_encoding`` instead.  (Martin Pool)
165
162
 
169
166
* ``bzrlib.trace.log_error``, ``error`` and ``info`` have been deprecated.
170
167
  (Martin Pool)
171
168
 
 
169
* ``MutableTree.has_changes()`` does not require a tree parameter anymore. It
 
170
  now defaults to comparing to the basis tree. It now checks for pending
 
171
  merges too.  ``Merger.check_basis`` has been deprecated and replaced by the
 
172
  corresponding has_changes() calls. ``Merge.compare_basis``,
 
173
  ``Merger.file_revisions`` and ``Merger.ensure_revision_trees`` have also
 
174
  been deprecated.
 
175
  (Vincent Ladeuil, #440631)
 
176
 
 
177
* ``ProgressTask.note`` is deprecated.
 
178
  (Martin Pool)
 
179
 
172
180
Internals
173
181
*********
174
182