templatekw: remove unneeded showtags
authorSean Farley <sean.michael.farley@gmail.com>
Mon, 15 Dec 2014 09:40:02 -0800
changeset 23611 d69a7fc68ad5
parent 23610 9266d1dd6a6e
child 23612 6006cad5e7a9
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).
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):