wierd merge bug

Robert Collins robertc at robertcollins.net
Thu Mar 9 21:02:14 GMT 2006


On Thu, 2006-03-09 at 21:48 +0100, Erik Bågfors wrote:
> Hi
> 
> I have the following situation.
> 
> I have a two branches (that have a common history), both have added a
> file named "foo"
> 
> When I merge one branch into the other, I get a message
> bzr: WARNING: Conflict adding file path/to/foo.  Moved existing file
> to path/to/foo.moved.

Does foo have the same id in both ? (bzr file-id foo)

> This is all fine, except the file path/to/foo doesn't exist anymore. 
> path/to/foo.moved exists, but not path/to/foo.
> 
> This is 100% reproducable with my branches, but I can't manage to
> reproduce it with any other branches.  The problem is that the
> branches I have here, is not something I can give to anyone.
> 
> I have tried to see if I can try to debug the problem myself and
> reproduce with some other branches, in some way but I have not
> succeeded yet.
> 
> If I look in the file in .bzr/inventory before the merge, both
> branches have the file (but with two different file_id's of course),
> but after the merge, only foo.moved has an entry in .bzr/inventory in
> the target branch.
> 
> This is really annoying (and severe) and I can't seem to reproduce it
> *gaaaaahhhh*
> 
> Any hints?

does:
bzr init
bzr branch . ../sibling
bzr commit -m 'diverge'
touch foo && bzr add foo
bzr commit -m 'add foo 1'
cd ../sibling
bzr commit -m 'more divergence'
touch foo && bzr add foo
bzr commit -m 'add foo 2'
cd -
bzr merge ../sibling

reproduce it ?

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060310/b215490c/attachment.pgp 


More information about the bazaar mailing list