mercurial/context.py
changeset 3209 9e8dd6114a4e
parent 3203 14792adabf80
parent 3207 0790dce2f3a8
child 3213 e8199702cf4e
child 3223 53e843840349
--- a/mercurial/context.py	Sat Sep 30 10:29:57 2006 +0200
+++ b/mercurial/context.py	Sat Sep 30 12:34:31 2006 +0200
@@ -148,6 +148,12 @@
     def __eq__(self, other):
         return self._path == other._path and self._changeid == other._changeid
 
+    def filectx(self, fileid):
+        '''opens an arbitrary revision of the file without
+        opening a new filelog'''
+        return filectx(self._repo, self._path, fileid=fileid,
+                       filelog=self._filelog)
+
     def filerev(self): return self._filerev
     def filenode(self): return self._filenode
     def filelog(self): return self._filelog