Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/mercurial/bundle20_loader_verifier.py
Show All 9 Lines | |||||
import random | import random | ||||
import sys | import sys | ||||
import time | import time | ||||
from binascii import hexlify, unhexlify | from binascii import hexlify, unhexlify | ||||
from swh.model.hashutil import MultiHash | from swh.model.hashutil import MultiHash | ||||
from .bundle20_loader import HgBundle20Loader | from .loader import HgBundle20Loader | ||||
from .converters import PRIMARY_ALGO as ALGO | from .converters import PRIMARY_ALGO as ALGO | ||||
from .objects import SimpleTree | from .objects import SimpleTree | ||||
class HgLoaderValidater(HgBundle20Loader): | class HgLoaderValidater(HgBundle20Loader): | ||||
def generate_all_blobs(self, validate=True, frequency=1): | def generate_all_blobs(self, validate=True, frequency=1): | ||||
print('GENERATING BLOBS') | print('GENERATING BLOBS') | ||||
i = 0 | i = 0 | ||||
▲ Show 20 Lines • Show All 229 Lines • Show Last 20 Lines |