mercurial/namespaces.py
changeset 23739 b8b246cffdee
parent 23738 3436e45de2fb
child 23760 50229b4c33be
equal deleted inserted replaced
23738:3436e45de2fb 23739:b8b246cffdee
    83                     maxrev = max(cl.rev(node) for node in n)
    83                     maxrev = max(cl.rev(node) for node in n)
    84                     return cl.node(maxrev)
    84                     return cl.node(maxrev)
    85                 return n[0]
    85                 return n[0]
    86         raise KeyError(_('no such name: %s') % name)
    86         raise KeyError(_('no such name: %s') % name)
    87 
    87 
    88     def templatename(self, namespace):
       
    89         """method that returns the template name of a namespace"""
       
    90         return self._names[namespace].templatename
       
    91 
       
    92 class namespace(object):
    88 class namespace(object):
    93     """provides an interface to a namespace
    89     """provides an interface to a namespace
    94 
    90 
    95     Namespaces are basically generic many-to-many mapping between some
    91     Namespaces are basically generic many-to-many mapping between some
    96     (namespaced) names and nodes. The goal here is to control the pollution of
    92     (namespaced) names and nodes. The goal here is to control the pollution of