--- a/mercurial/context.py Fri Sep 22 15:34:02 2006 -0500
+++ b/mercurial/context.py Fri Sep 22 16:01:14 2006 -0500
@@ -124,7 +124,11 @@
def filenode(self): return self._filenode
def filelog(self): return self._filelog
- def rev(self): return self._changectx.rev()
+ def rev(self):
+ if hasattr(self, "_changectx"):
+ return self._changectx.rev()
+ return self._filelog.linkrev(self._filenode)
+
def node(self): return self._changectx.node()
def user(self): return self._changectx.user()
def date(self): return self._changectx.date()