Mercurial > public > mercurial-scm > hg
diff mercurial/context.py @ 24300:a07314472a80
context: add a repo accessor
There are 29 instances of 'ctx._repo' in the code, so make the ability
to access more official.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 12 Mar 2015 22:54:53 -0400 |
parents | 8ec2df32bd39 |
children | 6ddc86eedc3b |
line wrap: on
line diff
--- 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):