Why is latesttag a string and not a list?

Simon Heimberg simohe at besonet.ch
Mon Feb 3 02:47:31 CST 2014


"hg help template" and man hg [1] 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?

Steps to reproduce
  $ hg init
  $ echo x > y
  $ hg ci -A -m xy y
  $ hg tag t1 t2 t3
  $ hg log -r .^ --template {latesttag}
  t1:t2:t3

[1] http://www.selenic.com/mercurial/hg.1.html#template-usage


More information about the Mercurial-devel mailing list