mercurial/context.py
changeset 24180 d8e0c591781c
parent 24050 a9b61dbdb827
child 24213 e0c1328df872
equal deleted inserted replaced
24179:14d647d25c70 24180:d8e0c591781c
   752             return self._filelog.cmp(self._filenode, fctx.data())
   752             return self._filelog.cmp(self._filenode, fctx.data())
   753 
   753 
   754         return True
   754         return True
   755 
   755 
   756     def _adjustlinkrev(self, path, filelog, fnode, srcrev, inclusive=False):
   756     def _adjustlinkrev(self, path, filelog, fnode, srcrev, inclusive=False):
   757         """return the first ancestor of <srcrev> introducting <fnode>
   757         """return the first ancestor of <srcrev> introducing <fnode>
   758 
   758 
   759         If the linkrev of the file revision does not point to an ancestor of
   759         If the linkrev of the file revision does not point to an ancestor of
   760         srcrev, we'll walk down the ancestors until we find one introducing
   760         srcrev, we'll walk down the ancestors until we find one introducing
   761         this file revision.
   761         this file revision.
   762 
   762 
   824             # - In the simple rename case, both parent are nullid, pl is empty.
   824             # - In the simple rename case, both parent are nullid, pl is empty.
   825             # - In case of merge, only one of the parent is null id and should
   825             # - In case of merge, only one of the parent is null id and should
   826             # be replaced with the rename information. This parent is -always-
   826             # be replaced with the rename information. This parent is -always-
   827             # the first one.
   827             # the first one.
   828             #
   828             #
   829             # As null id have alway been filtered out in the previous list
   829             # As null id have always been filtered out in the previous list
   830             # comprehension, inserting to 0 will always result in "replacing
   830             # comprehension, inserting to 0 will always result in "replacing
   831             # first nullid parent with rename information.
   831             # first nullid parent with rename information.
   832             pl.insert(0, (r[0], r[1], self._repo.file(r[0])))
   832             pl.insert(0, (r[0], r[1], self._repo.file(r[0])))
   833 
   833 
   834         ret = []
   834         ret = []