# HG changeset patch # User Matt Harbison # Date 1426293292 14400 # Node ID 5da0eb641881c5a1832e9f1635d2ac62581fbf90 # Parent 9612b96730d7309315d15d4ad3d9b20aa1bc29b1 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. diff -r 9612b96730d7 -r 5da0eb641881 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