filectx: add a repo accessor
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 13 Mar 2015 20:34:52 -0400
changeset 24333 5da0eb641881
parent 24332 9612b96730d7
child 24334 eda2f36889b5
filectx: add a repo accessor This is similar to a07314472a80 in motivation. All contexts now have this method, so the rest of the 'ctx._repo' uses can be converted without worrying about what type of context it is.
mercurial/context.py
--- a/mercurial/context.py	Fri Mar 13 13:03:55 2015 -0400
+++ b/mercurial/context.py	Fri Mar 13 20:34:52 2015 -0400
@@ -722,6 +722,8 @@
         return self._changectx.manifest()
     def changectx(self):
         return self._changectx
+    def repo(self):
+        return self._repo
 
     def path(self):
         return self._path