Software Heritage Loader SVN
Project description
swh-loader-svn
Documents are in the ./docs folder:
- Specification: ./docs/swh-loader-svn.txt
Configuration file
Location
Either:
- /etc/softwareheritage/
- ~/.config/swh/
- ~/.swh/
Note: Will call that location $SWH_CONFIG_PATH
Configuration sample
$SWH_CONFIG_PATH/loader/svn.yml:
storage:
cls: remote
args:
url: http://localhost:5002/
Local run
local svn repository
$ python3
repo = 'pyang-repo-r343-eol-native-mixed-lf-crlf'
#repo = 'zipeg-gae'
origin_url = 'http://%s.googlecode.com' % repo
local_repo_path = '/home/storage/svn/repo'
svn_url = 'file://%s/%s' % (local_repo_path, repo)
import logging
logging.basicConfig(level=logging.DEBUG)
from swh.loader.svn.tasks import LoadSvnRepository
t = LoadSvnRepository()
t.run(svn_url=svn_url,
origin_url=origin_url, visit_date='2016-05-03T15:16:32+00:00',
start_from_scratch=True)
Mount and load an archive repository dump
$ python3
repo = '0-512-md'
archive_name = '%s-repo.svndump.gz' % repo
archive_path = '/home/storage/svn/dumps/%s' % archive_name
origin_url = 'http://%s.googlecode.com' % repo
svn_url = 'file://%s' % repo
import logging
logging.basicConfig(level=logging.DEBUG)
from swh.loader.svn.tasks import MountAndLoadSvnRepository
t = MountAndLoadSvnRepository()
t.run(archive_path=archive_path,
origin_url=origin_url,
visit_date='2016-05-03T15:16:32+00:00',
start_from_scratch=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swh.loader.svn-0.1.1.tar.gz
(1.7 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swh.loader.svn-0.1.1.tar.gz.
File metadata
- Download URL: swh.loader.svn-0.1.1.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3f80536027a9b746cbf739a779cae4ef9a45b755f10eb0b7025d817cca1bda9
|
|
| MD5 |
b0887f54770aee426133c743ddf3e6aa
|
|
| BLAKE2b-256 |
b97c151a582941ea85c5573ec5a1f26a707e9bbe23c0e0a913f25350a5a2dad6
|
File details
Details for the file swh.loader.svn-0.1.1-py3-none-any.whl.
File metadata
- Download URL: swh.loader.svn-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6326135e48e0aad5e2e74489536882f4677ba30cfc06a05698fa4efbec776b55
|
|
| MD5 |
7f5bda51e8607a6b27a45f0d62c096fa
|
|
| BLAKE2b-256 |
6f10fa05ab30d58770c744f4039ed47aad970dae8c2151e47b7a299021efac73
|