filectx: remove dependencies on filerev
Removing dependencies on filectx.filerev() makes it easier to create a filelog
implementation that doesn't have rev numbers.
--- 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