# HG changeset patch # User Sean Farley # Date 1418665202 28800 # Node ID d69a7fc68ad54de9ae4956d6efc2ebd4afc220f3 # Parent 9266d1dd6a6edda6d3fdaab3008d73c4ff9568a6 templatekw: remove unneeded showtags Now that we have the machinery of namespaces in-place, we use that instead of hand-rolling our own template function. Note, this can only be used for tags because both branches and bookmarks have special case logic for 'default' and the current bookmark (which is something outside the namespace api for now). diff -r 9266d1dd6a6e -r d69a7fc68ad5 mercurial/templatekw.py --- a/mercurial/templatekw.py Thu Oct 16 23:19:09 2014 -0700 +++ b/mercurial/templatekw.py Mon Dec 15 09:40:02 2014 -0800 @@ -374,10 +374,6 @@ subrepos.append(sub) # removed in ctx return showlist('subrepo', sorted(subrepos), **args) -def showtags(**args): - """:tags: List of strings. Any tags associated with the changeset.""" - return showlist('tag', args['ctx'].tags(), **args) - def shownames(namespace, **args): """helper method to generate a template keyword for a namespace""" ctx = args['ctx'] @@ -424,7 +420,6 @@ 'phaseidx': showphaseidx, 'rev': showrev, 'subrepos': showsubrepos, - 'tags': showtags, } def _showparents(**args):