[MERGE] Unique roots for bzr

Aaron Bentley aaron.bentley at utoronto.ca
Mon Oct 2 14:22:36 BST 2006


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

Hi all,

This patch implements unique roots for new trees.  It is based my
original nested-trees work in May/June, which I have kept up-to-date
with current bzr over the past months.

It's intended to have the most minimal effect on commandline behaviour.
 The root is added as part of 'bzr init', so that you don't need to run
'bzr add .' in order to do an empty commit.


It also has no root for the empty tree.  This is still a bone of
contention between me and Robert.  Martin expressed a slight preference
for this approach, while John said "whatever makes the code cleanest".

I believe it's cleanest to special case just the 'add' of the tree root,
e.g. in transform.build_tree.  If the empty tree had a root, we would
have to handle the fact that the first commit deletes the existing root
and creates a new one.

So while support for rootless empty trees is by no means strong, it
seems to be a slight majority, and I'm therefore leaving the code as is.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFFIRKb0F+nu1YWqI0RAo5BAJ9lTyKNf32dsnQIZYOhsu1VibLRCwCeJF1l
mmweO7z71f5WM9n3vJyFVbE=
=yOXE
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uniqe-roots.patch
Type: text/x-patch
Size: 69257 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061002/e23799be/attachment.bin 


More information about the bazaar mailing list