mercurial/templatekw.py
changeset 25727 b8245386ab40
parent 25726 b44e483726d3
child 25736 8854ca3fa675
--- a/mercurial/templatekw.py	Mon Jul 06 23:12:24 2015 -0400
+++ b/mercurial/templatekw.py	Mon Jul 06 23:23:22 2015 -0400
@@ -325,11 +325,15 @@
     """
     return showlist('file', args['ctx'].files(), **args)
 
-def showlatesttag(repo, ctx, templ, cache, **args):
-    """:latesttag: String. Most recent global tag in the ancestors of this
-    changeset.
+def showlatesttag(**args):
+    """:latesttag: List of strings. The global tags on the most recent globally
+    tagged ancestor of this changeset.
     """
-    return ':'.join(getlatesttags(repo, ctx, cache)[2])
+    repo, ctx = args['repo'], args['ctx']
+    cache = args['cache']
+    latesttags = getlatesttags(repo, ctx, cache)[2]
+
+    return showlist('latesttag', latesttags, separator=':', **args)
 
 def showlatesttagdistance(repo, ctx, templ, cache, **args):
     """:latesttagdistance: Integer. Longest path to the latest tag."""