Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/svn.py
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | ): | ||||
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 | ||||
repos_root_url = self.info(origin_url).repos_root_url | repos_root_url = self.info(origin_url).repos_root_url | ||||
self.root_directory = origin_url.replace(repos_root_url, "", 1) | self.root_directory = origin_url.rstrip("/").replace(repos_root_url, "", 1) | ||||
def __str__(self): | def __str__(self): | ||||
return str( | return str( | ||||
{ | { | ||||
"swh-origin": self.origin_url, | "swh-origin": self.origin_url, | ||||
"remote_url": self.remote_url, | "remote_url": self.remote_url, | ||||
"local_url": self.local_url, | "local_url": self.local_url, | ||||
"uuid": self.uuid, | "uuid": self.uuid, | ||||
▲ Show 20 Lines • Show All 439 Lines • Show Last 20 Lines |