Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 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 | 637da5711122 |
children | dd3bccb4b820 |
comparison
equal
deleted
inserted
replaced
24332:9612b96730d7 | 24333:5da0eb641881 |
---|---|
720 return self._changectx.phasestr() | 720 return self._changectx.phasestr() |
721 def manifest(self): | 721 def manifest(self): |
722 return self._changectx.manifest() | 722 return self._changectx.manifest() |
723 def changectx(self): | 723 def changectx(self): |
724 return self._changectx | 724 return self._changectx |
725 def repo(self): | |
726 return self._repo | |
725 | 727 |
726 def path(self): | 728 def path(self): |
727 return self._path | 729 return self._path |
728 | 730 |
729 def isbinary(self): | 731 def isbinary(self): |