mercurial/dagop.py
changeset 35271 d90c534099b1
parent 35270 0d27685b4a2f
child 35272 70e86db6a913
--- a/mercurial/dagop.py	Thu Sep 22 17:16:53 2016 +0900
+++ b/mercurial/dagop.py	Sun Oct 22 17:23:34 2017 +0900
@@ -268,9 +268,7 @@
     `fromline`-`toline` range.
     """
     diffopts = patch.diffopts(fctx._repo.ui)
-    introrev = fctx.introrev()
-    if fctx.rev() != introrev:
-        fctx = fctx.filectx(fctx.filenode(), changeid=introrev)
+    fctx = fctx.introfilectx()
     visit = {(fctx.linkrev(), fctx.filenode()): (fctx, (fromline, toline))}
     while visit:
         c, linerange2 = visit.pop(max(visit))