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.
--- 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))