mercurial/context.py
changeset 19588 a192fff6c97d
parent 19587 b1c344ebd8e4
child 19589 6a9043fa06d0
equal deleted inserted replaced
19587:b1c344ebd8e4 19588:a192fff6c97d
   483         return self._filenode
   483         return self._filenode
   484     def flags(self):
   484     def flags(self):
   485         return self._changectx.flags(self._path)
   485         return self._changectx.flags(self._path)
   486     def filelog(self):
   486     def filelog(self):
   487         return self._filelog
   487         return self._filelog
       
   488     def rev(self):
       
   489         return self._changeid
   488 
   490 
   489 class filectx(basefilectx):
   491 class filectx(basefilectx):
   490     """A filecontext object makes access to data related to a particular
   492     """A filecontext object makes access to data related to a particular
   491        filerevision convenient."""
   493        filerevision convenient."""
   492     def __init__(self, repo, path, changeid=None, fileid=None,
   494     def __init__(self, repo, path, changeid=None, fileid=None,
   539         '''opens an arbitrary revision of the file without
   541         '''opens an arbitrary revision of the file without
   540         opening a new filelog'''
   542         opening a new filelog'''
   541         return filectx(self._repo, self._path, fileid=fileid,
   543         return filectx(self._repo, self._path, fileid=fileid,
   542                        filelog=self._filelog)
   544                        filelog=self._filelog)
   543 
   545 
   544     def rev(self):
       
   545         return self._changeid
       
   546     def linkrev(self):
   546     def linkrev(self):
   547         return self._filelog.linkrev(self._filerev)
   547         return self._filelog.linkrev(self._filerev)
   548     def node(self):
   548     def node(self):
   549         return self._changectx.node()
   549         return self._changectx.node()
   550     def hex(self):
   550     def hex(self):