Mercurial > hg
diff mercurial/setdiscovery.py @ 17355:c25531ed58b0
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}'.
author | epriestley <hg@yghe.net> |
---|---|
date | Tue, 10 Jul 2012 08:43:32 -0700 |
parents | 4feb55e6931f |
children | e7cfe3587ea4 |