Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/mercurial/loader.py
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
class HgBundle20Loader(UnbufferedLoader): | class HgBundle20Loader(UnbufferedLoader): | ||||
"""Mercurial loader able to deal with remote or local repository. | """Mercurial loader able to deal with remote or local repository. | ||||
""" | """ | ||||
CONFIG_BASE_FILENAME = 'loader/hg' | CONFIG_BASE_FILENAME = 'loader/hg' | ||||
ADDITIONAL_CONFIG = { | ADDITIONAL_CONFIG = { | ||||
'bundle_filename': ('str', 'HG20_none_bundle'), | 'bundle_filename': ('str', 'HG20_none_bundle'), | ||||
'reduce_effort': ('bool', True), # default: Try to be smart about time | 'reduce_effort': ('bool', False), | ||||
ardumont: because it's unused, also not captured in tests [1]
I'm not sure i understand fully how it… | |||||
'temp_directory': ('str', '/tmp'), | 'temp_directory': ('str', '/tmp'), | ||||
'cache1_size': ('int', 800*1024*1024), | 'cache1_size': ('int', 800*1024*1024), | ||||
'cache2_size': ('int', 800*1024*1024), | 'cache2_size': ('int', 800*1024*1024), | ||||
} | } | ||||
def __init__(self, logging_class='swh.loader.mercurial.Bundle20Loader'): | def __init__(self, logging_class='swh.loader.mercurial.Bundle20Loader'): | ||||
super().__init__(logging_class=logging_class) | super().__init__(logging_class=logging_class) | ||||
self.content_max_size_limit = self.config['content_size_limit'] | self.content_max_size_limit = self.config['content_size_limit'] | ||||
▲ Show 20 Lines • Show All 462 Lines • Show Last 20 Lines |
because it's unused, also not captured in tests [1]
I'm not sure i understand fully how it works so...
[1] https://forge.softwareheritage.org/source/puppet-swh-site/browse/production/data/defaults.yaml$1847