comparison 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
comparison
equal deleted inserted replaced
24299:68d998a76994 24300:a07314472a80
150 return self._node 150 return self._node
151 def hex(self): 151 def hex(self):
152 return hex(self.node()) 152 return hex(self.node())
153 def manifest(self): 153 def manifest(self):
154 return self._manifest 154 return self._manifest
155 def repo(self):
156 return self._repo
155 def phasestr(self): 157 def phasestr(self):
156 return phases.phasenames[self.phase()] 158 return phases.phasenames[self.phase()]
157 def mutable(self): 159 def mutable(self):
158 return self.phase() > phases.public 160 return self.phase() > phases.public
159 161