##// END OF EJS Templates
filectx: if we have a _descendantrev, use it to adjust linkrev...
Matt Mackall -
r23983:ff070a53 stable
parent child Browse files
Show More
@@ -633,6 +633,11 b' class basefilectx(object):'
633 return self._changeid
633 return self._changeid
634 elif '_changectx' in self.__dict__:
634 elif '_changectx' in self.__dict__:
635 return self._changectx.rev()
635 return self._changectx.rev()
636 elif '_descendantrev' in self.__dict__:
637 # this file context was created from a revision with a known
638 # descendant, we can (lazily) correct for linkrev aliases
639 return self._adjustlinkrev(self._path, self._filelog,
640 self._filenode, self._descendantrev)
636 else:
641 else:
637 return self._filelog.linkrev(self._filerev)
642 return self._filelog.linkrev(self._filerev)
638
643
General Comments 0
You need to be logged in to leave comments. Login now