changeset 23611:d69a7fc68ad5

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).
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 15 Dec 2014 09:40:02 -0800
parents 9266d1dd6a6e
children 6006cad5e7a9
files mercurial/templatekw.py
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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):