changeset 24333:5da0eb641881

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 13 Mar 2015 20:34:52 -0400
parents 9612b96730d7
children eda2f36889b5
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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