[PATCH 01 of 12] localrepo: add an unused dictionary for arbitrary labels

Sean Farley sean.michael.farley at gmail.com
Thu Aug 21 13:02:18 CDT 2014


Pierre-Yves David writes:

> On 08/18/2014 02:17 PM, Sean Farley wrote:
>> # HG changeset patch
>> # User Sean Farley <sean.michael.farley at gmail.com>
>> # Date 1396216512 18000
>> #      Sun Mar 30 16:55:12 2014 -0500
>> # Node ID ed72c4bcbbbcab7f75f6b86fee6c67aa45590e7c
>> # Parent  8dda6f6ff564d8fe6ac7b8ce4c74eb9bfb5de14a
>> localrepo: add an unused dictionary for arbitrary labels
>>
>> diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
>> --- a/mercurial/localrepo.py
>> +++ b/mercurial/localrepo.py
>> @@ -301,10 +301,13 @@ class localrepository(object):
>>           # - new obsolescence marker,
>>           # - working directory parent change,
>>           # - bookmark changes
>>           self.filteredrevcache = {}
>>
>> +        # dictionary of arbitrary labels, e.g. _labels["foo"]["bar] = node
>> +        self._labels = {}
>> +
>
> You docstring is confusing. do you mean ?
>
> eg. _labels["labeltype"]["labelname"] = node

Man, I really thought I fixed this already. Yes, I mean:

_labels["namespace"]["name"] = node

A concrete example:

_labels["tags"]["v1.2.3"] = node


More information about the Mercurial-devel mailing list