[PATCH 3 of 8] namespaces: add convenience method called multify

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Dec 15 12:47:26 CST 2014



On 12/15/2014 10:47 AM, Durham Goode wrote:
>
> On 12/14/14 4:37 PM, Sean Farley wrote:
>> # HG changeset patch
>> # User Sean Farley <sean.michael.farley at gmail.com>
>> # Date 1418598280 28800
>> #      Sun Dec 14 15:04:40 2014 -0800
>> # Node ID 519aa5b4f74d5604b2d3d34c4e75b99d698b01b5
>> # Parent  98bc28635ee1999c778e5c98f55423147d316a9e
>> namespaces: add convenience method called multify
>>
>> diff --git a/mercurial/namespaces.py b/mercurial/namespaces.py
>> --- a/mercurial/namespaces.py
>> +++ b/mercurial/namespaces.py
>> @@ -1,7 +1,16 @@
>>   from mercurial import util
>> +def multify(val):
>> +    """
>> +    a convenience method to return an empty list instead of None
>> +    """
>>
> Is multify a word?  I've never heard it before, so naming this multify
> is about as meaningful as naming it pooperdooper().  How about
> "makelist()" or something?

It has been renamed to "tolist" in the series now on the clowncopter.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list