[RFC/PLEASETEST] Per-file graph heads detection during commit for pack repositories.

Robert Collins robertc at robertcollins.net
Wed Nov 14 18:02:48 GMT 2007


On Wed, 2007-11-14 at 08:31 -0600, John Arbash Meinel wrote:
> 
> +        search_keys = set(revision_ids)
> +        if NULL_REVISION in search_keys:
> +            search_keys.remove(NULL_REVISION)
> 
> Since search_keys is a set, you can use:
> 
>   search_keys.discard(NULL_REVISION) 

Darn, I knew there had to be a method for this. Thanks.

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- 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/20071115/4f62a4b2/attachment-0001.pgp 


More information about the bazaar mailing list