[PATCH RFC] color: rename 'label' template function to 'color'

Durham Goode durham at fb.com
Mon Apr 7 13:13:47 CDT 2014


On 4/7/14, 10:27 AM, Sean Farley wrote:
> Matt Mackall <mpm at selenic.com> writes:
>
>> On Sun, 2014-04-06 at 21:32 -0500, Sean Farley wrote:
>>> # HG changeset patch
>>> # User Sean Farley <sean.michael.farley at gmail.com>
>>> # Date 1396670819 18000
>>> #      Fri Apr 04 23:06:59 2014 -0500
>>> # Node ID aa43236b2340fadf49b087929f0e5ed514ec0c60
>>> # Parent  c7ceae0faf6997ff3c262a0b641719b6fd357055
>>> color: rename 'label' template function to 'color'
>> Breaks backward compatibility. Go directly to Jail, do not pass Go, do
>> not collect $200.
> Ok, that's what I thought. How should 'labels' (i.e. arbitrary markers
> for changesets) be accessed through templates?

I'd make label() accept color names first, since that gives us the 
desired behavior without the BC issue.  Then perhaps we can add a 
color() function that's just an alias for label().


More information about the Mercurial-devel mailing list