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.
--- 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