dagop: use fctx.rev() consistently in filectxancestors()
authorYuya Nishihara <yuya@tcha.org>
Thu, 22 Sep 2016 18:01:55 +0900
changeset 35273 8dee2080f35c
parent 35272 70e86db6a913
child 35274 2b348dc3239a
dagop: use fctx.rev() consistently in filectxancestors() We can't use fctx.linkrev() to sort fctxs coming from multiple files. This was changed at 24b57c3899f8 due to performance issue, but we know we evaluate parent.rev() in revset anyway.
mercurial/dagop.py
--- a/mercurial/dagop.py	Thu Sep 22 17:48:46 2016 +0900
+++ b/mercurial/dagop.py	Thu Sep 22 18:01:55 2016 +0900
@@ -87,7 +87,7 @@
     yield c
     while True:
         for parent in c.parents()[:cut]:
-            visit[(parent.linkrev(), parent.filenode())] = parent
+            visit[(parent.rev(), parent.filenode())] = parent
         if not visit:
             break
         c = visit.pop(max(visit))