~bzr-pqm/bzr/bzr.dev

  • Committer: Vincent Ladeuil
  • Date: 2009-10-06 14:40:37 UTC
  • mto: (4728.1.2 integration)
  • 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).

Filename Latest Rev Last Changed Committer Comment Size
..
bzrlib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
contrib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
doc 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
man1 2425.1.1 17 years ago Robert Collins ``make docs`` now creates a man page at ``man1/bzr Diff
tools 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
.bzrignore 4634.39.35 15 years ago Ian Clatworthy put rules back in Makefile supporting plain-style 1.1 KB Diff Download File
.rsyncexclude 1185.33.36 18 years ago Martin Pool Exclude more files from dumb-rsync upload 203 bytes Diff Download File
BRANCH.TODO 4325.3.4 15 years ago Johan Walles Merge from upstream. 150 bytes Diff Download File
File bzr 4676.4.1 15 years ago Martin Pool merge 2.0rc2, sphinx, and various fixes back to tr 5.6 KB Diff Download File
bzr.ico 3688.3.3 16 years ago John Arbash Meinel An updated transparent icon for bzr. 12.7 KB Diff Download File
COPYING.txt 1861.2.9 18 years ago Alexander Belchenko rename gpl.txt => COPYING.txt 17.5 KB Diff Download File
INSTALL 2696.2.4 17 years ago Aaron Bentley Fix typo 1.4 KB Diff Download File
Makefile 4719.1.1 15 years ago Andrew Bennetts Add --subunit to 'make check'. 14.5 KB Diff Download File
NEWS 4721.3.2 15 years ago Vincent Ladeuil Simplify mutable_tree.has_changes() and update cal 394 KB Diff Download File
profile_imports.py 4183.7.1 15 years ago Sabin Iacob update FSF mailing address 5.5 KB Diff Download File
README 3286 16 years ago Canonical.com Patch Queue Manager Start 1.4 development 3.3 KB Diff Download File
File setup.py 4634.48.1 15 years ago Alexander Belchenko trivial improvement re collecting dependencies for 26.7 KB Diff Download File
TODO 2382.2.5 17 years ago Martin Pool Contents of TODO file moved into bug tracker 115 bytes Diff Download File