mercurial/namespaces.py
changeset 23608 807ee1a02bb0
parent 23607 0fd778ef0f61
child 23610 9266d1dd6a6e
equal deleted inserted replaced
23607:0fd778ef0f61 23608:807ee1a02bb0
    94         raise KeyError(_('no such name: %s') % name)
    94         raise KeyError(_('no such name: %s') % name)
    95 
    95 
    96     def templatename(self, namespace):
    96     def templatename(self, namespace):
    97         """method that returns the template name of a namespace"""
    97         """method that returns the template name of a namespace"""
    98         return self._names[namespace]['templatename']
    98         return self._names[namespace]['templatename']
       
    99 
       
   100     def names(self, repo, namespace, node):
       
   101         """method that returns a (sorted) list of names in a namespace that
       
   102         match a given node"""
       
   103         return sorted(self._names[namespace]['nodemap'](repo, node))