##// END OF EJS Templates
templatekw: make {latesttag} a hybrid list...
Matt Harbison -
r25727:b8245386 default
parent child Browse files
Show More
@@ -325,11 +325,15 b' def showfiles(**args):'
325 325 """
326 326 return showlist('file', args['ctx'].files(), **args)
327 327
328 def showlatesttag(repo, ctx, templ, cache, **args):
329 """:latesttag: String. Most recent global tag in the ancestors of this
330 changeset.
328 def showlatesttag(**args):
329 """:latesttag: List of strings. The global tags on the most recent globally
330 tagged ancestor of this changeset.
331 331 """
332 return ':'.join(getlatesttags(repo, ctx, cache)[2])
332 repo, ctx = args['repo'], args['ctx']
333 cache = args['cache']
334 latesttags = getlatesttags(repo, ctx, cache)[2]
335
336 return showlist('latesttag', latesttags, separator=':', **args)
333 337
334 338 def showlatesttagdistance(repo, ctx, templ, cache, **args):
335 339 """:latesttagdistance: Integer. Longest path to the latest tag."""
@@ -458,6 +458,9 b' check that we can merge tags that differ'
458 458 $ echo c4 > f4
459 459 $ hg log -r '.' -T "{changessincelatesttag} changes since {latesttag}\n"
460 460 2 changes since t4:t6
461 $ hg log -r '.' -T "{latesttag % '{latesttag}\n'}"
462 t4
463 t6
461 464 $ hg ci -A -m4
462 465 adding f4
463 466 $ hg log -r 'wdir()' -T "{changessincelatesttag} changes since {latesttag}\n"
General Comments 0
You need to be logged in to leave comments. Login now