comparison tests/test-remotefilelog-histpack.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
175 # Must add file entries in reverse topological order 175 # Must add file entries in reverse topological order
176 revisions = list(reversed(revisions)) 176 revisions = list(reversed(revisions))
177 pack = self.createPack(revisions) 177 pack = self.createPack(revisions)
178 178
179 # Verify the pack contents 179 # Verify the pack contents
180 for filename, node in allentries: 180 for (filename, node) in allentries:
181 ancestors = pack.getancestors(filename, node) 181 ancestors = pack.getancestors(filename, node)
182 self.assertEqual(ancestorcounts[(filename, node)], len(ancestors)) 182 self.assertEqual(ancestorcounts[(filename, node)], len(ancestors))
183 for anode, (ap1, ap2, alinknode, copyfrom) in ancestors.items(): 183 for anode, (ap1, ap2, alinknode, copyfrom) in ancestors.items():
184 ep1, ep2, elinknode = allentries[(filename, anode)] 184 ep1, ep2, elinknode = allentries[(filename, anode)]
185 self.assertEqual(ap1, ep1) 185 self.assertEqual(ap1, ep1)