[MERGE] deprecate find_previous_heads

Robert Collins robertc at robertcollins.net
Mon Sep 3 03:04:10 BST 2007


This patch deprecated find_previous_heads, using Graph.heads() instead,
which is just a renamed _filter_candidate_lca's (because it is in fact
performing a heads calculation).

This adds 1 second to a 3m10 userspace commit due AFAICT to the slightly
increased function calls per file. I plan to remove that in further low
level restructurings.

I also refactoring RootCommitBuilder to remove duplication with
CommitBuilder - there is a single extra function call per commit, so
nearly no overhead there.

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deprecated-find-previous-heads.patch
Type: text/x-patch
Size: 21591 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070903/94bbbd01/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070903/94bbbd01/attachment-0001.pgp 


More information about the bazaar mailing list