[PATCH] templatekw: add parent1, parent1node, parent2, parent2node keywords

Patrick Mézard patrick at mezard.eu
Wed Aug 8 13:56:26 CDT 2012


Le 07/08/12 21:46, Evan Priestley a écrit :
> (Redux from a couple weeks ago, giving this another shot as 
> per ContributingChanges on the wiki.)
> 
> # HG changeset patch
> # User epriestley <hg at yghe.net <mailto:hg at yghe.net>>
> # Date 1341935012 25200
> # Node ID 1c053d939f42f9face52f8c991e624e111189d97
> # Parent  2e13c1bd34dc6afda8fc7cfa22a8cd658276724f
> templatekw: add parent1, parent1node, parent2, parent2node keywords
> 
> The {parents} template is cumbersome for some uses, as it does not show
> anything if there's only one "natural" parent and you can't use it to get the
> full 40 digit node hashes for parents unless you rely on the behavior of
> the --debug flag.
> 
> Introduce four new template keywords: {parent1}, {parent2}, {parent1node} and
> {parent2node}. The "node" flavors of these always show full 40 digit hashes,
> but users can get the short version with a filter construction like
> '{parent1node|short}'.

I thought this had been queued but I was wrong.

What about using p1, p2, p1node and p2node instead to mimic the revsets? Matt?

--
Patrick Mézard



More information about the Mercurial-devel mailing list