##// END OF EJS Templates
basefilectx: move linkrev from filectx
Sean Farley -
r19589:6a9043fa default
parent child Browse files
Show More
@@ -487,6 +487,8 b' class basefilectx(object):'
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):
491 return self._filelog.linkrev(self._filerev)
490
492
491 class filectx(basefilectx):
493 class filectx(basefilectx):
492 """A filecontext object makes access to data related to a particular
494 """A filecontext object makes access to data related to a particular
@@ -543,8 +545,6 b' class filectx(basefilectx):'
543 return filectx(self._repo, self._path, fileid=fileid,
545 return filectx(self._repo, self._path, fileid=fileid,
544 filelog=self._filelog)
546 filelog=self._filelog)
545
547
546 def linkrev(self):
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):
General Comments 0
You need to be logged in to leave comments. Login now