changeset 24300:a07314472a80

context: add a repo accessor There are 29 instances of 'ctx._repo' in the code, so make the ability to access more official.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 12 Mar 2015 22:54:53 -0400
parents 68d998a76994
children 18b5b2c9d921
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):