context: add a repo accessor
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 12 Mar 2015 22:54:53 -0400
changeset 24300 a07314472a80
parent 24299 68d998a76994
child 24301 18b5b2c9d921
context: add a repo accessor There are 29 instances of 'ctx._repo' in the code, so make the ability to access more official.
mercurial/context.py
--- a/mercurial/context.py	Thu Mar 12 21:49:20 2015 -0400
+++ b/mercurial/context.py	Thu Mar 12 22:54:53 2015 -0400
@@ -152,6 +152,8 @@
         return hex(self.node())
     def manifest(self):
         return self._manifest
+    def repo(self):
+        return self._repo
     def phasestr(self):
         return phases.phasenames[self.phase()]
     def mutable(self):