dagop: use fctx.rev() consistently in filectxancestors()

We can't use fctx.linkrev() to sort fctxs coming from multiple files.
This was changed at a5b8b1052ef6 due to performance issue, but we know
we evaluate parent.rev() in revset anyway.
This commit is contained in:
Yuya Nishihara 2016-09-22 18:01:55 +09:00
parent 70940bffa0
commit a17c36ca23

View File

@ -87,7 +87,7 @@ def filectxancestors(fctx, followfirst=False):
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))