~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_merge.py

  • Committer: Vincent Ladeuil
  • Date: 2009-01-23 21:06:48 UTC
  • mto: (3966.1.1 bzr.integration)
  • mto: This revision was merged to the branch mainline in revision 3967.
  • Revision ID: v.ladeuil+lp@free.fr-20090123210648-yfb39g22yyo83d3y
Slight refactoring and test fixing.

* bzrlib/tests/test_merge.py:
(TestMergerEntriesLCAOnDisk.test_modified_symlink): Passing now.

* bzrlib/merge.py:
(Merge3Merger._lca_multi_way): Fix doc reference.
(Merge3Merger.merge_contents.contents_conflict): Try to delay
this_pair evaulation to avoid unnecessary sha1 (impyling file read
from disk) calculation. Also slightly refactor to avoid repeated
file_id in trees calculations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2153
2153
        wt.merge_from_branch(wt.branch, 'C-id')
2154
2154
        wt.commit('D merges B & C', rev_id='D-id')
2155
2155
        conflicts = wt.merge_from_branch(wt.branch, to_revision='F-id')
2156
 
        self.expectFailure("Merge3Merger doesn't use lcas for symlink content",
2157
 
            self.assertEqual, 0, conflicts)
 
2156
        self.assertEqual(0, conflicts)
2158
2157
        self.assertEqual('bing', wt.get_symlink_target('foo-id'))
2159
2158
 
2160
2159
    def test_renamed_symlink(self):