equal
deleted
inserted
replaced
1 #!/usr/bin/env python |
1 #!/usr/bin/env python |
2 from __future__ import absolute_import |
|
3 |
2 |
4 import hashlib |
3 import hashlib |
5 import os |
4 import os |
6 import random |
5 import random |
7 import shutil |
6 import shutil |
282 def testLargePack(self): |
281 def testLargePack(self): |
283 """Test creating and reading from a large pack with over X entries. |
282 """Test creating and reading from a large pack with over X entries. |
284 This causes it to use a 2^16 fanout table instead.""" |
283 This causes it to use a 2^16 fanout table instead.""" |
285 total = basepack.SMALLFANOUTCUTOFF + 1 |
284 total = basepack.SMALLFANOUTCUTOFF + 1 |
286 revisions = [] |
285 revisions = [] |
287 for i in pycompat.xrange(total): |
286 for i in range(total): |
288 filename = b"foo-%d" % i |
287 filename = b"foo-%d" % i |
289 node = self.getFakeHash() |
288 node = self.getFakeHash() |
290 p1 = self.getFakeHash() |
289 p1 = self.getFakeHash() |
291 p2 = self.getFakeHash() |
290 p2 = self.getFakeHash() |
292 linknode = self.getFakeHash() |
291 linknode = self.getFakeHash() |