Merge lp:~vila/bzr/805809-no-final-path into lp:bzr/2.2
Proposed by
Vincent Ladeuil
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | John A Meinel | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 5133 | ||||
Proposed branch: | lp:~vila/bzr/805809-no-final-path | ||||
Merge into: | lp:bzr/2.2 | ||||
Diff against target: |
109 lines (+75/-2) 3 files modified
NEWS (+3/-0) bzrlib/merge.py (+8/-2) bzrlib/tests/test_conflicts.py (+64/-0) |
||||
To merge this branch: | bzr merge lp:~vila/bzr/805809-no-final-path | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John A Meinel | Approve | ||
Review via email: mp+66868@code.launchpad.net |
Commit message
Handle path conflicts involving different root-ids
Description of the change
The path conflicts involving the root-ids are still a bit obscure
but roughly in this case, we don't inject the root path for the
branch we are merging from in the tree transform (and I can't see
why we should).
The fix is minimal as I target 2.2 but I'm not sure it's worth
digging for a better fix for now.
I'll check what will happen when merging up in 2.3 and 2.4 but
some earlier tests showed that the fix is valid for trunk too.
The "bad" news is that this will require a bzr upgrade on jubany
to fix the corresponding failures (31), but I'll care about that
once this patch has landed.
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 7/5/2011 11:19 AM, Vincent Ladeuil wrote: /bugs.launchpad .net/bzr/ +bug/805809 /code.launchpad .net/~vila/ bzr/805809- no-final- path/+merge/ 66868
> Vincent Ladeuil has proposed merging lp:~vila/bzr/805809-no-final-path into lp:bzr/2.2.
>
> Requested reviews:
> bzr-core (bzr-core)
> Related bugs:
> Bug #805809 in Bazaar: "merge fails with NoFinalPath"
> https:/
>
> For more details, see:
> https:/
>
> The path conflicts involving the root-ids are still a bit obscure
> but roughly in this case, we don't inject the root path for the
> branch we are merging from in the tree transform (and I can't see
> why we should).
>
> The fix is minimal as I target 2.2 but I'm not sure it's worth
> digging for a better fix for now.
>
> I'll check what will happen when merging up in 2.3 and 2.4 but
> some earlier tests showed that the fix is valid for trunk too.
>
> The "bad" news is that this will require a bzr upgrade on jubany
> to fix the corresponding failures (31), but I'll care about that
> once this patch has landed.
>
- - parent_path = fp.get_path( trans_id_ file_id( other_parent) ) tree.get_ root_id( ):
- - self.tt.
+ if other_parent == self.other_
+ # The tree transform don't know about the other
root,
+ # so we special case here to avoid a NoFinalPath
+ # exception
+ parent_path = ''
^- "doesn't know about"
merge: approve
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk4 S3DkACgkQJdeBCY SNAAOUzgCfdnwcN ATvOnd40oqy1N4D JrZZ SZOOTSNPqA0dXjq 4q
aZgAoMCGCU8Zfuf
=b6VC
-----END PGP SIGNATURE-----