[MERGE] set parent trees api.

Robert Collins robertc at robertcollins.net
Fri Aug 18 12:19:38 BST 2006


On Fri, 2006-08-18 at 19:18 +1000, Martin Pool wrote:
> On 18 Aug 2006, Robert Collins <robertc at robertcollins.net> wrote:
> ... 
> > The reason I use a tuple is for compatability with the set_parent_trees
> > api rather than having one take rev_id, tree_or_none and the other take
> > a list of tuples.
> > 
> > I'd rather do it the way I have, if you feel strongly I will change it.
> 
> I see what you mean.  And we can't use a dictionary because it'll
> lose the ordering, so I guess the tuples are the best option.  How about
> adding assertions that len==2?  (I hate when you pass a string
> instead of a list or tuple and get a delayed error.)

Sure thing.

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: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060818/83ff6fce/attachment.pgp 


More information about the bazaar mailing list