mercurial/context.py
changeset 19590 90994b176bc1
parent 19589 6a9043fa06d0
child 19591 04fbc85f870a
equal deleted inserted replaced
19589:6a9043fa06d0 19590:90994b176bc1
   487         return self._filelog
   487         return self._filelog
   488     def rev(self):
   488     def rev(self):
   489         return self._changeid
   489         return self._changeid
   490     def linkrev(self):
   490     def linkrev(self):
   491         return self._filelog.linkrev(self._filerev)
   491         return self._filelog.linkrev(self._filerev)
       
   492     def node(self):
       
   493         return self._changectx.node()
   492 
   494 
   493 class filectx(basefilectx):
   495 class filectx(basefilectx):
   494     """A filecontext object makes access to data related to a particular
   496     """A filecontext object makes access to data related to a particular
   495        filerevision convenient."""
   497        filerevision convenient."""
   496     def __init__(self, repo, path, changeid=None, fileid=None,
   498     def __init__(self, repo, path, changeid=None, fileid=None,
   543         '''opens an arbitrary revision of the file without
   545         '''opens an arbitrary revision of the file without
   544         opening a new filelog'''
   546         opening a new filelog'''
   545         return filectx(self._repo, self._path, fileid=fileid,
   547         return filectx(self._repo, self._path, fileid=fileid,
   546                        filelog=self._filelog)
   548                        filelog=self._filelog)
   547 
   549 
   548     def node(self):
       
   549         return self._changectx.node()
       
   550     def hex(self):
   550     def hex(self):
   551         return hex(self.node())
   551         return hex(self.node())
   552     def user(self):
   552     def user(self):
   553         return self._changectx.user()
   553         return self._changectx.user()
   554     def date(self):
   554     def date(self):