Show More
@@ -419,6 +419,10 b' class basefilectx(object):' | |||||
419 | def __new__(cls, repo, path, *args, **kwargs): |
|
419 | def __new__(cls, repo, path, *args, **kwargs): | |
420 | return super(basefilectx, cls).__new__(cls) |
|
420 | return super(basefilectx, cls).__new__(cls) | |
421 |
|
421 | |||
|
422 | @propertycache | |||
|
423 | def _filelog(self): | |||
|
424 | return self._repo.file(self._path) | |||
|
425 | ||||
422 | class filectx(basefilectx): |
|
426 | class filectx(basefilectx): | |
423 | """A filecontext object makes access to data related to a particular |
|
427 | """A filecontext object makes access to data related to a particular | |
424 | filerevision convenient.""" |
|
428 | filerevision convenient.""" | |
@@ -469,10 +473,6 b' class filectx(basefilectx):' | |||||
469 | return changectx(self._repo.unfiltered(), self._changeid) |
|
473 | return changectx(self._repo.unfiltered(), self._changeid) | |
470 |
|
474 | |||
471 | @propertycache |
|
475 | @propertycache | |
472 | def _filelog(self): |
|
|||
473 | return self._repo.file(self._path) |
|
|||
474 |
|
||||
475 | @propertycache |
|
|||
476 | def _changeid(self): |
|
476 | def _changeid(self): | |
477 | if '_changeid' in self.__dict__: |
|
477 | if '_changeid' in self.__dict__: | |
478 | return self._changeid |
|
478 | return self._changeid |
General Comments 0
You need to be logged in to leave comments.
Login now