branch | stable |
changeset 32063 | befefdd34cf8 |
parent 32006 | c84c83b5df0f |
child 32069 | a457da5296a5 |
--- a/mercurial/context.py Thu Apr 13 16:09:40 2017 -0400 +++ b/mercurial/context.py Thu Apr 20 21:40:28 2017 +0200 @@ -1192,6 +1192,9 @@ `fromline`-`toline` range. """ diffopts = patch.diffopts(fctx._repo.ui) + introrev = fctx.introrev() + if fctx.rev() != introrev: + fctx = fctx.filectx(fctx.filenode(), changeid=introrev) visit = {(fctx.linkrev(), fctx.filenode()): (fctx, (fromline, toline))} while visit: c, linerange2 = visit.pop(max(visit))