Merge lp:~jelmer/bzr/merge-inner-require-tree-root into lp:bzr
Proposed by
Jelmer Vernooij
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jelmer Vernooij | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 5997 | ||||
Proposed branch: | lp:~jelmer/bzr/merge-inner-require-tree-root | ||||
Merge into: | lp:bzr | ||||
Diff against target: |
101 lines (+43/-1) 5 files modified
bzrlib/merge.py (+1/-1) bzrlib/tests/test_merge.py (+18/-0) bzrlib/tests/test_transform.py (+15/-0) bzrlib/transform.py (+6/-0) doc/en/release-notes/bzr-2.4.txt (+3/-0) |
||||
To merge this branch: | bzr merge lp:~jelmer/bzr/merge-inner-require-tree-root | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Disapprove | ||
Review via email: mp+66133@code.launchpad.net |
Commit message
Re-introduce root when merge result is empty tree.
Description of the change
Now that merge uses the transform functionality to fix up roots, it no longer re-adds a tree root if the target tree is empty.
This breaks when the target tree is a working tree, which can not be root-less.
This makes TreeTransform.
old behaviour in merge.
To post a comment you must log in.
I think the feature flag is YAGNI, but the rest seems fine. /bugs.launchpad .net/bzr/ +bug/801257 /code.launchpad .net/~jelmer/ bzr/merge- inner-require- tree-root/ +merge/ 66133 fixup_new_ roots() check that a tree root is /code.launchpad .net/~jelmer/ bzr/merge- inner-require- tree-root/ +merge/ 66133
Tweak
John
=:->
On Jun 28, 2011 2:05 PM, "Jelmer Vernooij" <email address hidden> wrote:
> Jelmer Vernooij has proposed merging
lp:~jelmer/bzr/merge-inner-require-tree-root into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
> Related bugs:
> Bug #801257 in Bazaar: "newer versions break bzr-loom"
> https:/
>
> For more details, see:
>
https:/
>
> Now that merge uses the transform functionality to fix up roots, it no
longer re-adds a tree root if the target tree is empty.
>
> This breaks when the target tree is a working tree, which can not be
root-less.
>
> This makes TreeTransform.
present, and re-add the old tree root if there is none. This is consistent
with the
> old behaviour in merge.
> --
>
https:/
> Your team bzr-core is requested to review the proposed merge of
lp:~jelmer/bzr/merge-inner-require-tree-root into lp:bzr.