# HG changeset patch # User Matt Harbison # Date 1426215293 14400 # Node ID a07314472a80da4bed99cf5a755c453c8917e37c # Parent 68d998a76994415dfb42c0e0d2cfc826d167f7f9 context: add a repo accessor There are 29 instances of 'ctx._repo' in the code, so make the ability to access more official. diff -r 68d998a76994 -r a07314472a80 mercurial/context.py --- 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):