# HG changeset patch # User Sean Farley # Date 2013-08-12 03:44:36 # Node ID 18bbd8a3abf3acd7d7b1a9ea53eed53edd5ae0eb # Parent 5a868137b83032daf8f3affac4f44d35e243cfa8 basefilectx: move _filerev from filectx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -439,6 +439,10 @@ class basefilectx(object): else: return self._changectx.filenode(self._path) + @propertycache + def _filerev(self): + return self._filelog.rev(self._filenode) + class filectx(basefilectx): """A filecontext object makes access to data related to a particular filerevision convenient.""" @@ -489,10 +493,6 @@ class filectx(basefilectx): return changectx(self._repo.unfiltered(), self._changeid) @propertycache - def _filerev(self): - return self._filelog.rev(self._filenode) - - @propertycache def _repopath(self): return self._path