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.0.54.tar.gz
(1.7 MB
view hashes)
Built Distribution
Close
Hashes for swh.loader.svn-0.0.54-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5d17705e1dd63429c90eb06e4c89f19e270ea4cc13e6d147e4e1cc7f15b8cc9 |
|
MD5 | ece2fb734161fce6fbfb5fdf661464d5 |
|
BLAKE2b-256 | 063a880ec7e12220f3519c7e6af18976ca48483173a1afa19b5404c7e1719f03 |