Why is latesttag a string and not a list?
mads at kiilerich.com
Mon Feb 3 04:47:35 CST 2014
On 02/03/2014 09:47 AM, Simon Heimberg wrote:
> "hg help template" and man hg  show the data type of latesttag as
> string. But when latesttag points to a revision tagged multiple times, all
> its tags are returned, separated by ":". latesttag probably should have the
> same datatype as "tags": list of strings. Or maybe it should only return
> one tag.
> Should I report this to the bug tracker?
That might be unfortunate design now, but it seemed like a good idea at
that time and now that is how it is.
If you can change it in a backward compatible way, go ahead. If not,
reporting it as a bug might be moot.
(latesttag revision can now trivially be found with a revset. It could
perhaps be deprecated now. There is however no simple way to find its
companion latesttagdistance. Some "count" command that could compute max
and min distance and width of a revset (or between two revisions) could
perhaps be handy.)
More information about the Mercurial-devel