# HG changeset patch # User Yuya Nishihara # Date 1474534915 -32400 # Node ID 8dee2080f35cc8a84a8bdb400f226823efd3d4c8 # Parent 70e86db6a913eee61f81ab0d6cf4a13110d94d3b 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. diff -r 70e86db6a913 -r 8dee2080f35c 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))