mercurial/namespaces.py
changeset 37068 aa97e06a1912
parent 36593 900e5ee44307
child 38486 4c0683655599
equal deleted inserted replaced
37067:04aafcec00b9 37068:aa97e06a1912
    87             self._names[namespace.name] = namespace
    87             self._names[namespace.name] = namespace
    88 
    88 
    89         # we only generate a template keyword if one does not already exist
    89         # we only generate a template keyword if one does not already exist
    90         if namespace.name not in templatekw.keywords:
    90         if namespace.name not in templatekw.keywords:
    91             templatekeyword = registrar.templatekeyword(templatekw.keywords)
    91             templatekeyword = registrar.templatekeyword(templatekw.keywords)
    92             @templatekeyword(namespace.name, requires={'repo', 'ctx', 'templ'})
    92             @templatekeyword(namespace.name, requires={'repo', 'ctx'})
    93             def generatekw(context, mapping):
    93             def generatekw(context, mapping):
    94                 return templatekw.shownames(context, mapping, namespace.name)
    94                 return templatekw.shownames(context, mapping, namespace.name)
    95 
    95 
    96     def singlenode(self, repo, name):
    96     def singlenode(self, repo, name):
    97         """
    97         """