[MERGE][bug #235715] bzr merge --lca should handle NULL as a base

John Arbash Meinel john at arbash-meinel.com
Thu May 29 20:03:36 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The current --lca algorithm assumes that all common ancestors will be available
from the underlying versioned file. However, it is possible to have ancestries
that don't connect, causing NULL_REVISION to be an lca. And asking a VF for
NULL_REVISION raises a 'illegal' error.

This just updates the merge code so that if it gets NULL_REVISION it recognizes
that it should be treated as just an empty text.

I did this against 1.3, since that is what the bug was filed against, and what
is available in hardy. So it could easily go into a 1.3.2, or just into 1.6.
(The only issue is where to put the NEWS entry, whatever we decide to do.)

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkg+/ggACgkQJdeBCYSNAAOZsgCfUVK96WphIOOVL/aM3wEM9jrD
k9gAnirUs1cZ4Y89PRMA0K6ORBTHiGOk
=WAro
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lca_with_null_235715.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20080529/1dae4459/attachment-0001.diff 


More information about the bazaar mailing list