mercurial/context.py
changeset 19288 ec367f203cb5
parent 19149 921b64e1f7b9
child 19292 e0aa6fff8f02
--- a/mercurial/context.py	Mon Jun 03 17:20:45 2013 -0700
+++ b/mercurial/context.py	Thu May 30 17:49:37 2013 -0700
@@ -503,14 +503,8 @@
         return self._changectx.flags(self._path)
     def filelog(self):
         return self._filelog
-
     def rev(self):
-        if '_changectx' in self.__dict__:
-            return self._changectx.rev()
-        if '_changeid' in self.__dict__:
-            return self._changectx.rev()
-        return self._filelog.linkrev(self._filerev)
-
+        return self._changeid
     def linkrev(self):
         return self._filelog.linkrev(self._filerev)
     def node(self):