updated: Re: [MERGE] trees - add get_parent_ids

Robert Collins robertc at robertcollins.net
Fri Jun 16 15:04:55 BST 2006


On Fri, 2006-06-16 at 23:51 +1000, Robert Collins wrote:
> This patch adds a get_parent_ids() call to all our tree objects (at
> least, I think to all of them ;)).
> 
> This call returns:
> [] for a tree with unknown parents
> ['null:'] for a tree descending from null:
> [revid, ...] in general.
> 
> EmptyTree descends from ['null:'].
> RevisionTree mirrors the revision graph.
> WorkingTree provides the union of last_revision and pending merges.

This uses the new get_parent_ids code to tweak commit a little. This
will also make commit nicer for use with non-working trees.

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree-get-parent-ids.patch
Type: text/x-patch
Size: 13536 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060617/6aed6b20/attachment.bin 
-------------- 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/20060617/6aed6b20/attachment.pgp 


More information about the bazaar mailing list