mercurial/context.py
changeset 40711 1423ff45c322
parent 40302 af2306bf7d5d
child 40731 f3f4d8537b11
equal deleted inserted replaced
40710:d6a13f6db69c 40711:1423ff45c322
   560     def _filelog(self):
   560     def _filelog(self):
   561         return self._repo.file(self._path)
   561         return self._repo.file(self._path)
   562 
   562 
   563     @propertycache
   563     @propertycache
   564     def _changeid(self):
   564     def _changeid(self):
   565         if r'_changeid' in self.__dict__:
   565         if r'_changectx' in self.__dict__:
   566             return self._changeid
       
   567         elif r'_changectx' in self.__dict__:
       
   568             return self._changectx.rev()
   566             return self._changectx.rev()
   569         elif r'_descendantrev' in self.__dict__:
   567         elif r'_descendantrev' in self.__dict__:
   570             # this file context was created from a revision with a known
   568             # this file context was created from a revision with a known
   571             # descendant, we can (lazily) correct for linkrev aliases
   569             # descendant, we can (lazily) correct for linkrev aliases
   572             return self._adjustlinkrev(self._descendantrev)
   570             return self._adjustlinkrev(self._descendantrev)