comparison mercurial/ancestor.py @ 51700:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 493034cc3265
children ca7bde5dbafb
comparison
equal deleted inserted replaced
51699:bd1483fd7088 51700:7f0cb9ee0534
86 interesting = {} 86 interesting = {}
87 count = max(nodes) + 1 87 count = max(nodes) + 1
88 depth = [0] * count 88 depth = [0] * count
89 seen = [0] * count 89 seen = [0] * count
90 mapping = [] 90 mapping = []
91 for i, n in enumerate(sorted(nodes)): 91 for (i, n) in enumerate(sorted(nodes)):
92 depth[n] = 1 92 depth[n] = 1
93 b = 1 << i 93 b = 1 << i
94 seen[n] = b 94 seen[n] = b
95 interesting[b] = 1 95 interesting[b] = 1
96 mapping.append((b, n)) 96 mapping.append((b, n))