equal
deleted
inserted
replaced
616 args = pycompat.byteskwargs(args) |
616 args = pycompat.byteskwargs(args) |
617 ctx = args['ctx'] |
617 ctx = args['ctx'] |
618 repo = ctx.repo() |
618 repo = ctx.repo() |
619 |
619 |
620 namespaces = util.sortdict() |
620 namespaces = util.sortdict() |
|
621 def makensmapfn(ns): |
|
622 # 'name' for iterating over namespaces, templatename for local reference |
|
623 return lambda v: {'name': v, ns.templatename: v} |
621 |
624 |
622 for k, ns in repo.names.iteritems(): |
625 for k, ns in repo.names.iteritems(): |
623 namespaces[k] = showlist('name', ns.names(repo, ctx.node()), args) |
626 names = ns.names(repo, ctx.node()) |
|
627 f = _showlist('name', names, args) |
|
628 namespaces[k] = _hybrid(f, names, makensmapfn(ns), pycompat.identity) |
624 |
629 |
625 f = _showlist('namespace', list(namespaces), args) |
630 f = _showlist('namespace', list(namespaces), args) |
626 |
631 |
627 def makemap(ns): |
632 def makemap(ns): |
628 return { |
633 return { |