[PATCH evolve] templates: change {obsolete} to emit only "obsolete" or ""
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Sat Sep 10 07:23:31 EDT 2016
On 09/10/2016 01:53 AM, Martin von Zweigbergk via Mercurial-devel wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz at google.com>
> # Date 1473464561 25200
> # Fri Sep 09 16:42:41 2016 -0700
> # Node ID 1b73d60b427bd36235af7369adc9bc8b92705608
> # Parent 346de2c1b0e97e7cdf06597a4708910c0d5b5ba2
> templates: change {obsolete} to emit only "obsolete" or ""
>
> The {obsolete} template function can currently emit "stable",
> "unstable", "extinct", or "suspended".
>
> The distinction between "extinct" and "suspended" seems likely to be
> more confusing that enlightening, and "stable" and "unstable" are not
> even obsolete.
>
> Let's simplify it to just emit "obsolete" for obsolete changesets and
> "" for others. That will also make it much easier to test for obsolete
> changsets and do things like "if(obsolete, obsolete, troubles)".
Yeah, pretty much the only time I had to explain suspended/extinct in
the last 4 years are when people discovered this template. Testing a
simpler version seems the way to go. pushed.--
Pierre-Yves David
More information about the Mercurial-devel
mailing list