Merge lp://staging/~spiv/bzr-builder/backport-merge-into into lp://staging/bzr-builder

Proposed by Andrew Bennetts
Status: Merged
Merged at revision: 101
Proposed branch: lp://staging/~spiv/bzr-builder/backport-merge-into
Merge into: lp://staging/bzr-builder
Prerequisite: lp://staging/~spiv/bzr-builder/merge-subdirs-479705
Diff against target: 345 lines (+269/-35)
2 files modified
bzrlibbackports.py (+227/-0)
recipe.py (+42/-35)
To merge this branch: bzr merge lp://staging/~spiv/bzr-builder/backport-merge-into
Reviewer Review Type Date Requested Status
Andrew Bennetts (community) Abstain
James Westby Needs Fixing
Review via email: mp+32428@code.staging.launchpad.net

Description of the change

This removes dependencies on bzr 2.2 by backporting MergeIntoMerger and removing the use of OperationWithCleanups.

This branch follows the merge-subdirs branch, i.e. it provides the merge-subdirs feature without the dependency on bzr 2.2.

To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :
Download full text (14.5 KiB)

Hi Andrew, looks great, but there are a few small issues:

It needs

try:
    MergeIntoMerger = merge.MergeIntoMerger
except (AttributeError, NameError):
    from bzrlib.plugins.builder.bzrlibbackports import MergeIntoMerger

instead of just NameError

and

            merger = MergeIntoMerger(this_tree=tree_to, other_tree=other_tree,
                other_branch=merge_from, target_subdir=target_subdir,
                source_subpath=subpath, other_rev_id=merge_revid)

instead of merge.MergeIntoMerger.

With these tweaks I get two test failures:

bzr selftest: /usr/bin/bzr
   /usr/lib/python2.6/dist-packages/bzrlib
   bzr-2.1.1 python-2.6.5 Linux-2.6.32-24-generic-i686-with-Ubuntu-10.04-lucid

======================================================================
ERROR: bzrlib.plugins.builder.tests.test_recipe.BuildTreeTests.test_build_tree_nest_part
----------------------------------------------------------------------
_StringException: Text attachment: log
------------
22.425 creating repository in file:///tmp/testbzr-_LchpF.tmp/bzrlib.plugins.builder.tests.test_recipe.BuildTreeTests.test_build_tree_nest_part/work/source1/.bzr/.
22.434 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0xb0eb88c> in file:///tmp/testbzr-_LchpF.tmp/bzrlib.plugins.builder.tests.test_recipe.BuildTreeTests.test_build_tree_nest_part/work/source1/.bzr/
22.455 trying to create missing lock '/tmp/testbzr-_LchpF.tmp/bzrlib.plugins.builder.tests.test_recipe.BuildTreeTests.test_build_tree_nest_part/work/source1/.bzr/checkout/dirstate'
22.457 opening working tree '/tmp/testbzr-_LchpF.tmp/bzrlib.plugins.builder.tests.test_recipe.BuildTreeTests.test_build_tree_nest_part/work/source1'
22.479 preparing to commit
22.484 Selecting files for commit with filter None
22.521 creating repository in file:///tmp/testbzr-_LchpF.tmp/bzrlib.plugins.builder.tests.test_recipe.BuildTreeTests.test_build_tree_nest_part/work/source2/.bzr/.
22.530 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0xae1156c> in file:///tmp/testbzr-_LchpF.tmp/bzrlib.plugins.builder.tests.test_recipe.BuildTreeTests.test_build_tree_nest_part/work/source2/.bzr/
22.548 trying to create missing lock '/tmp/testbzr-_LchpF.tmp/bzrlib.plugins.builder.tests.test_recipe.BuildTreeTests.test_build_tree_nest_part/work/source2/.bzr/checkout/dirstate'
22.548 opening working tree '/tmp/testbzr-_LchpF.tmp/bzrlib.plugins.builder.tests.test_recipe.BuildTreeTests.test_build_tree_nest_part/work/source2'
22.571 preparing to commit
22.576 Selecting files for commit with filter None
22.615 preparing to commit
22.620 Selecting files for commit with filter None
    INFO Building tree.
    INFO Retrieving 'source1' to put at 'target'.
22.663 opening working tree '/tmp/testbzr-_LchpF.tmp/bzrlib.plugins.builder.tests.test_recipe.BuildTreeTests.test_build_tree_nest_part/work/source1'
22.673 creating repository in file:///tmp/te...

review: Needs Fixing
73. By Andrew Bennetts

Fix bugs in MergeIntoMerger backport found by James.

Revision history for this message
Andrew Bennetts (spiv) wrote :

I've done those tweaks, and fixed the _finish_computing_transform bug (it's intended to be inherited by MergeIntoMergeType from its base class, but it is also new in 2.2, so I've copied it verbatim into the backported MergeIntoMergeType).

review: Needs Resubmitting
Revision history for this message
Andrew Bennetts (spiv) :
review: Abstain

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches