Mercurial > hg
changeset 3401:d8eba1c3ce9b
Add linkrev to filectx
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Sun, 15 Oct 2006 17:37:04 -0700 |
parents | 5dbb3a991bbf |
children | a004164dbeef |
files | mercurial/context.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Sun Oct 15 21:09:56 2006 +0200 +++ b/mercurial/context.py Sun Oct 15 17:37:04 2006 -0700 @@ -185,7 +185,7 @@ def rev(self): if '_changectx' in self.__dict__: return self._changectx.rev() - return self._filelog.linkrev(self._filenode) + return self.linkrev() def node(self): return self._changectx.node() def user(self): return self._changectx.user() @@ -195,6 +195,7 @@ def manifest(self): return self._changectx.manifest() def changectx(self): return self._changectx + def linkrev(self): return self._filelog.linkrev(self._filenode) def data(self): return self._filelog.read(self._filenode) def renamed(self): return self._filelog.renamed(self._filenode) def path(self): return self._path