Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 19314:bc82abe500a9
filectx: remove dependencies on filerev
Removing dependencies on filectx.filerev() makes it easier to create a filelog
implementation that doesn't have rev numbers.
author | Durham Goode <durham@fb.com> |
---|---|
date | Thu, 30 May 2013 19:29:21 -0700 |
parents | e0aa6fff8f02 |
children | 6e3e8575276d |
line wrap: on
line diff
--- a/mercurial/context.py Sat Jun 08 22:37:08 2013 +0200 +++ b/mercurial/context.py Thu May 30 19:29:21 2013 -0700 @@ -667,7 +667,7 @@ # use linkrev to find the first changeset where self appeared if self.rev() != self.linkrev(): - base = self.filectx(self.filerev()) + base = self.filectx(self.filenode()) else: base = self @@ -736,7 +736,7 @@ # prime the ancestor cache for the working directory acache = {} for c in (self, fc2): - if c._filerev is None: + if c.filenode() is None: pl = [(n.path(), n.filenode()) for n in c.parents()] acache[(c._path, None)] = pl