Error during merge: No final name for trans_id 'new-70'
David Engster
deng at randomsample.de
Tue Sep 18 18:33:36 UTC 2012
Aaron Bentley writes:
> On 12-09-17 04:04 PM, David Engster wrote:
>> bzr: ERROR: No final name for trans_id 'new-70' file-id: None root
>> trans-id: 'new-0'
>>
>> The offending commit in 'trunk' which is causing this error is
>> rev. 8235, which is a very large merge from another branch and
>> which surely leads to a criss-cross with many conflicts, but I
>> cannot do anything about that now, hence I'd appreciate any hints
>> on how to deal with this error.
[...]
> You can fix this by restoring obsolete/lisp/cedet/semantic/wisent,
> which you can do like so:
>
> bzr revert -r 8184 obsolete/lisp/cedet/semantic/wisent/
> bzr resolve --all
> bzr commit -m "Restored directory"
>
> Merge will then work, and you can delete the directory afterward.
Aaron,
Thank you so much for your help! Everything's working fine now.
> The error you are getting is a bug in bzr. This situation should
> produce a conflict, not an error.
Actually, I was unsure about these kind of conflicts for quite some
time. Say I have a change in 'trunk' to the file 'foo.txt' which is
removed in 'to-emacs'. During the above merge I get a conflict for
'foo.txt', which I can resolve in two ways: Either use
bzr revert foo.txt
or
bzr resolve --take-this foo.txt
Are those two equivalent, or should I prefer one over the other?
Also, it would be very handy if bzr could resolve these types of
conflicts automatically. Can bzr automatically ignore changes for files
which are removed in the target branch? As you may have seen, this
situation is occurring very often in the above merge, since 'to-emacs'
has many files from 'trunk' removed, so this would save me quite some
time (I will have to do these kinds of merges regularly in the
future...).
Again, thanks for your help, and sorry for hijacking this thread to ask
further questions. :-)
-David
More information about the bazaar
mailing list