Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/svn.py
Show All 26 Lines | |||||
logger = logging.getLogger(__name__) | logger = logging.getLogger(__name__) | ||||
class SvnRepo: | class SvnRepo: | ||||
"""Svn repository representation. | """Svn repository representation. | ||||
Args: | Args: | ||||
remote_url (str): | remote_url: Remove svn repository url | ||||
origin_url (str): Associated origin identifier | origin_url: Associated origin identifier | ||||
local_dirname (str): Path to write intermediary svn action results | local_dirname: Path to write intermediary svn action results | ||||
""" | """ | ||||
def __init__(self, remote_url, origin_url, local_dirname, max_content_length): | def __init__( | ||||
self, | |||||
remote_url: str, | |||||
origin_url: str, | |||||
local_dirname: str, | |||||
max_content_length: int, | |||||
): | |||||
self.remote_url = remote_url.rstrip("/") | self.remote_url = remote_url.rstrip("/") | ||||
self.origin_url = origin_url | self.origin_url = origin_url | ||||
auth = Auth([get_username_provider()]) | auth = Auth([get_username_provider()]) | ||||
# one connection for log iteration | # one connection for log iteration | ||||
self.conn_log = RemoteAccess(self.remote_url, auth=auth) | self.conn_log = RemoteAccess(self.remote_url, auth=auth) | ||||
# another for replay | # another for replay | ||||
self.conn = RemoteAccess(self.remote_url, auth=auth) | self.conn = RemoteAccess(self.remote_url, auth=auth) | ||||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |