Show More
@@ -439,6 +439,10 b' class basefilectx(object):' | |||||
439 | else: |
|
439 | else: | |
440 | return self._changectx.filenode(self._path) |
|
440 | return self._changectx.filenode(self._path) | |
441 |
|
441 | |||
|
442 | @propertycache | |||
|
443 | def _filerev(self): | |||
|
444 | return self._filelog.rev(self._filenode) | |||
|
445 | ||||
442 | class filectx(basefilectx): |
|
446 | class filectx(basefilectx): | |
443 | """A filecontext object makes access to data related to a particular |
|
447 | """A filecontext object makes access to data related to a particular | |
444 | filerevision convenient.""" |
|
448 | filerevision convenient.""" | |
@@ -489,10 +493,6 b' class filectx(basefilectx):' | |||||
489 | return changectx(self._repo.unfiltered(), self._changeid) |
|
493 | return changectx(self._repo.unfiltered(), self._changeid) | |
490 |
|
494 | |||
491 | @propertycache |
|
495 | @propertycache | |
492 | def _filerev(self): |
|
|||
493 | return self._filelog.rev(self._filenode) |
|
|||
494 |
|
||||
495 | @propertycache |
|
|||
496 | def _repopath(self): |
|
496 | def _repopath(self): | |
497 | return self._path |
|
497 | return self._path | |
498 |
|
498 |
General Comments 0
You need to be logged in to leave comments.
Login now