Mercurial > hg > mercurial-source
changeset 23749:b56400eeefaf
templatekw: update namespace calls
Previous patches changed the namespace api to be more of an object-oriented
approach. This patch updates the template function to use said api changes.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sun, 21 Dec 2014 14:01:52 -0800 |
parents | d7324c242c3f |
children | 3436e45de2fb |
files | mercurial/templatekw.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -378,9 +378,9 @@ """helper method to generate a template keyword for a namespace""" ctx = args['ctx'] repo = ctx._repo - names = repo.names.names(repo, namespace, ctx.node()) - return showlist(repo.names.templatename(namespace), names, - plural=namespace, **args) + ns = repo.names[namespace] + names = ns.names(repo, ctx.node()) + return showlist(ns.templatename, names, plural=namespace, **args) # keywords are callables like: # fn(repo, ctx, templ, cache, revcache, **args)