equal
deleted
inserted
replaced
290 self.createPack(chain, packdir) |
290 self.createPack(chain, packdir) |
291 deltachains.append(chain) |
291 deltachains.append(chain) |
292 |
292 |
293 class testdatapackstore(datapack.datapackstore): |
293 class testdatapackstore(datapack.datapackstore): |
294 # Ensures that we are not keeping everything in the cache. |
294 # Ensures that we are not keeping everything in the cache. |
295 DEFAULTCACHESIZE = int(numpacks / 2) |
295 DEFAULTCACHESIZE = numpacks // 2 |
296 |
296 |
297 store = testdatapackstore(uimod.ui(), packdir) |
297 store = testdatapackstore(uimod.ui(), packdir) |
298 |
298 |
299 random.shuffle(deltachains) |
299 random.shuffle(deltachains) |
300 for randomchain in deltachains: |
300 for randomchain in deltachains: |