mercurial/namespaces.py
changeset 23736 d7324c242c3f
parent 23718 42908c3275c6
child 23738 3436e45de2fb
--- a/mercurial/namespaces.py	Tue Jan 06 18:18:28 2015 -0600
+++ b/mercurial/namespaces.py	Sun Dec 21 13:56:32 2014 -0800
@@ -42,6 +42,10 @@
                lambda repo, node: [repo[node].branch()])
         self.addnamespace(n)
 
+    def __getitem__(self, namespace):
+        """returns the namespace object"""
+        return self._names[namespace]
+
     def addnamespace(self, namespace, order=None):
         """register a namespace