Mercurial > public > mercurial-scm > hg
comparison mercurial/templatekw.py @ 26486:8a732c322ca7
templatekw: add {changes}, {distance} and {tag} to the {latesttag} keyword
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 24 Aug 2015 23:30:17 -0400 |
parents | 93c80e7ed8c8 |
children | 60af96494a76 |
comparison
equal
deleted
inserted
replaced
26485:43bf9471fae9 | 26486:8a732c322ca7 |
---|---|
342 | 342 |
343 def showlatesttag(**args): | 343 def showlatesttag(**args): |
344 """:latesttag: List of strings. The global tags on the most recent globally | 344 """:latesttag: List of strings. The global tags on the most recent globally |
345 tagged ancestor of this changeset. | 345 tagged ancestor of this changeset. |
346 """ | 346 """ |
347 repo, ctx = args['repo'], args['ctx'] | 347 return showlatesttags(None, **args) |
348 cache = args['cache'] | |
349 latesttags = getlatesttags(repo, ctx, cache)[2] | |
350 | |
351 return showlist('latesttag', latesttags, separator=':', **args) | |
352 | 348 |
353 def showlatesttags(pattern, **args): | 349 def showlatesttags(pattern, **args): |
354 """helper method for the latesttag keyword and function""" | 350 """helper method for the latesttag keyword and function""" |
355 repo, ctx = args['repo'], args['ctx'] | 351 repo, ctx = args['repo'], args['ctx'] |
356 cache = args['cache'] | 352 cache = args['cache'] |