159 # Must add file entries in reverse topological order |
159 # Must add file entries in reverse topological order |
160 revisions = list(reversed(revisions)) |
160 revisions = list(reversed(revisions)) |
161 pack = self.createPack(revisions) |
161 pack = self.createPack(revisions) |
162 |
162 |
163 # Verify the pack contents |
163 # Verify the pack contents |
164 for (filename, node), (p1, p2, lastnode) in allentries.items(): |
164 for (filename, node) in allentries: |
165 ancestors = pack.getancestors(filename, node) |
165 ancestors = pack.getancestors(filename, node) |
166 self.assertEqual(ancestorcounts[(filename, node)], |
166 self.assertEqual(ancestorcounts[(filename, node)], |
167 len(ancestors)) |
167 len(ancestors)) |
168 for anode, (ap1, ap2, alinknode, copyfrom) in ancestors.items(): |
168 for anode, (ap1, ap2, alinknode, copyfrom) in ancestors.items(): |
169 ep1, ep2, elinknode = allentries[(filename, anode)] |
169 ep1, ep2, elinknode = allentries[(filename, anode)] |