Formatting inconsistency - {parents} vs {children}
Kevin Bullock
kbullock+mercurial at ringworld.org
Wed Dec 5 16:53:13 UTC 2012
On Dec 5, 2012, at 5:30 AM, Jan Vrany wrote:
> Hi,
>
> I've just found out that there is an inconsistency in template variables.
>
> * {parents} expands to an empty string or short changeset id.
> if --debug is given, full, 20bytes node is printed, always.
> Also. no mention of --debug in help
>
> * {children} expands to short changeset id _always_, no matter
> if --debug is given or not.
This sounds like a bug. The normal behavior everywhere is to print full IDs when --debug is specified.
> Is there any way how to expand {children} to full node ids?
>
> In any case, I found this inconsistent and rather confusing
> Also, --debug to get full ids is bit strange. I understand
> that human beings rarely want full ids when short is sufficient,
> but think about machine interface (my case :-)
> What about --full-id global option to force full ids wherever
> an changeset id is printed?
A machine interface should be able to use --debug perfectly well (and probably ought to do). That being said, do you know about the command server and hglib?
pacem in terris / мир / शान्ति / سَلاَم / 平和
Kevin R. Bullock
More information about the Mercurial
mailing list