##// END OF EJS Templates
filectx: refactor filectx.rev() to use filectx._changeid...
Durham Goode -
r19288:ec367f20 default
parent child Browse files
Show More
@@ -503,14 +503,8 b' class filectx(object):'
503 return self._changectx.flags(self._path)
503 return self._changectx.flags(self._path)
504 def filelog(self):
504 def filelog(self):
505 return self._filelog
505 return self._filelog
506
507 def rev(self):
506 def rev(self):
508 if '_changectx' in self.__dict__:
507 return self._changeid
509 return self._changectx.rev()
510 if '_changeid' in self.__dict__:
511 return self._changectx.rev()
512 return self._filelog.linkrev(self._filerev)
513
514 def linkrev(self):
508 def linkrev(self):
515 return self._filelog.linkrev(self._filerev)
509 return self._filelog.linkrev(self._filerev)
516 def node(self):
510 def node(self):
General Comments 0
You need to be logged in to leave comments. Login now