diff mercurial/dagop.py @ 45216:4ebc5f325bed stable

log: fix crash and bad filematcher lookup by -fr'wdir()' PATH "-fr'wdir()' ADDED-PATH" is still wrong, which will be fixed in default branch.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 11 Sep 2020 14:41:05 +0900
parents 67f757ed86e0
children 89a2afe31e82
line wrap: on
line diff
--- a/mercurial/dagop.py	Wed Sep 09 14:48:55 2020 -0400
+++ b/mercurial/dagop.py	Fri Sep 11 14:41:05 2020 +0900
@@ -17,6 +17,7 @@
     node,
     patch,
     pycompat,
+    scmutil,
     smartset,
 )
 
@@ -90,7 +91,7 @@
     visitheap = []
 
     def addvisit(fctx):
-        rev = fctx.rev()
+        rev = scmutil.intrev(fctx)
         if rev not in visit:
             visit[rev] = set()
             heapq.heappush(visitheap, -rev)  # max heap