[PATCH] summary: add troubles list to the output of hg summary

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri Dec 4 20:01:31 CST 2015



On 12/04/2015 12:43 PM, Augie Fackler wrote:
> http://red.bikeshed.org/
>
> On Fri, Dec 4, 2015 at 3:38 PM, Laurent Charignon <lcharignon at fb.com> wrote:
>> # HG changeset patch
>> # User Laurent Charignon <lcharignon at fb.com>
>> # Date 1449261301 28800
>> #      Fri Dec 04 12:35:01 2015 -0800
>> # Node ID 851cce4e60ea8e3a9d48638d6aec5b0e604157b2
>> # Parent  71aa5a26162d6e4a165b68f07b331e3e2eedc117
>> summary: add troubles list to the output of hg summary
>>
>> This patch adds troubles information for the output of hg summary.
>> Example line displayed in hg summary:
>> troubles: 1 unstable changeset
>>
>> diff --git a/mercurial/commands.py b/mercurial/commands.py
>> --- a/mercurial/commands.py
>> +++ b/mercurial/commands.py
>> @@ -6335,6 +6335,22 @@
>>       if draft or secret:
>>           ui.status(_('phases: %s\n') % ', '.join(t))
>>
>> +    if obsolete.isenabled(repo, obsolete.createmarkersopt):
>> +        for trouble in ("unstable", "divergent", "bumped"):
>> +            numtrouble = len(repo.revs(trouble + "()"))
>> +            # We write all the possibilities to ease translation
>> +            troublemsg = {
>> +               "unstable": (_("troubles: %d unstable changeset"),
>
> I'm pretty strongly opposed to the word "troubles" here. It
> feels...wrong to my native-speaker brain, but I don't have a good
> proposal. "evolve" would make sense if that was core, or "instability"
> might make more sense.
>
> What do other people think?

evolution?

evolution-troubles? (too long)

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list