Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/svn.py
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | class SvnRepo: | ||||
def __init__( | def __init__( | ||||
self, | self, | ||||
remote_url: str, | remote_url: str, | ||||
origin_url: str, | origin_url: str, | ||||
local_dirname: str, | local_dirname: str, | ||||
max_content_length: int, | max_content_length: int, | ||||
from_dump: bool = False, | from_dump: bool = False, | ||||
debug: bool = False, | |||||
): | ): | ||||
self.origin_url = origin_url | self.origin_url = origin_url | ||||
self.from_dump = from_dump | self.from_dump = from_dump | ||||
# default auth provider for anonymous access | # default auth provider for anonymous access | ||||
auth_providers = [get_username_provider()] | auth_providers = [get_username_provider()] | ||||
# check if basic auth is required | # check if basic auth is required | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | ): | ||||
self.local_url = os.path.join(self.local_dirname, local_name).encode("utf-8") | self.local_url = os.path.join(self.local_dirname, local_name).encode("utf-8") | ||||
self.uuid = self.conn.get_uuid().encode("utf-8") | self.uuid = self.conn.get_uuid().encode("utf-8") | ||||
self.swhreplay = replay.Replay( | self.swhreplay = replay.Replay( | ||||
conn=self.conn, | conn=self.conn, | ||||
rootpath=self.local_url, | rootpath=self.local_url, | ||||
svnrepo=self, | svnrepo=self, | ||||
temp_dir=local_dirname, | temp_dir=local_dirname, | ||||
debug=debug, | |||||
) | ) | ||||
self.max_content_length = max_content_length | self.max_content_length = max_content_length | ||||
self.has_relative_externals = False | self.has_relative_externals = False | ||||
self.has_recursive_externals = False | self.has_recursive_externals = False | ||||
self.replay_started = False | self.replay_started = False | ||||
# compute root directory path from the remote repository URL, required to | # compute root directory path from the remote repository URL, required to | ||||
# properly load the sub-tree of a repository mounted from a dump file | # properly load the sub-tree of a repository mounted from a dump file | ||||
▲ Show 20 Lines • Show All 479 Lines • Show Last 20 Lines |