equal
deleted
inserted
replaced
376 |
376 |
377 def shownames(namespace, **args): |
377 def shownames(namespace, **args): |
378 """helper method to generate a template keyword for a namespace""" |
378 """helper method to generate a template keyword for a namespace""" |
379 ctx = args['ctx'] |
379 ctx = args['ctx'] |
380 repo = ctx._repo |
380 repo = ctx._repo |
381 names = repo.names.names(repo, namespace, ctx.node()) |
381 ns = repo.names[namespace] |
382 return showlist(repo.names.templatename(namespace), names, |
382 names = ns.names(repo, ctx.node()) |
383 plural=namespace, **args) |
383 return showlist(ns.templatename, names, plural=namespace, **args) |
384 |
384 |
385 # keywords are callables like: |
385 # keywords are callables like: |
386 # fn(repo, ctx, templ, cache, revcache, **args) |
386 # fn(repo, ctx, templ, cache, revcache, **args) |
387 # with: |
387 # with: |
388 # repo - current repository instance |
388 # repo - current repository instance |