mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
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:
parent
70940bffa0
commit
a17c36ca23
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user