[MERGE] Root entry has a revision id

Aaron Bentley aaron.bentley at utoronto.ca
Tue Aug 8 19:15:04 BST 2006


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

Hi all,

This is another patch in the make-root-less-weird series.

This patch ensures that the root entry has a revision id in all
RevisionTrees and BundleTrees.

Since the stored inventory doesn't always have its revision id recorded,
this is determined when the RevisionTree or BundleTree is generated.

Updates to commit were necessary to ensure that the revision id was
appropriately set there, as well.

The inventory change is due to the commit changes.  It
1. Allows inventories to be generated that don't have root entries
2. Allows root entries to be added the same way other entries are added.

Although commit can now call record_entry_contents on a root entry, this
does not create a weave or knit for the root entry.  Similarly, other
CommitBuilders may choose to ignore the root entry if appropriate.

I have tried to maintain backwards compatibility two ways:
1. commit should work with old CommitBuilders (e.g. the bzr-svn one)
2. other CommitBuilder clients (are there any?) should work with new
CommitBuilders.

Oh, and I nuked a bare except and added some comments.

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

iD8DBQFE2NSo0F+nu1YWqI0RAm2xAJ9NKGIRDn5bwGJU4zLqG4SLbVVpZACeII2l
5zyifykos0FtU4Abi68puMI=
=mz96
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: root-has-revision.patch
Type: text/x-patch
Size: 12688 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060808/0dbc9ac5/attachment-0001.bin 


More information about the bazaar mailing list