##// END OF EJS Templates
namespaces: add __getitem__ property...
Sean Farley -
r23736:d7324c24 default
parent child Browse files
Show More
@@ -42,6 +42,10 b' class namespaces(object):'
42 lambda repo, node: [repo[node].branch()])
42 lambda repo, node: [repo[node].branch()])
43 self.addnamespace(n)
43 self.addnamespace(n)
44
44
45 def __getitem__(self, namespace):
46 """returns the namespace object"""
47 return self._names[namespace]
48
45 def addnamespace(self, namespace, order=None):
49 def addnamespace(self, namespace, order=None):
46 """register a namespace
50 """register a namespace
47
51
General Comments 0
You need to be logged in to leave comments. Login now