Skip to main content

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


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.3.2.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swh.loader.svn-0.3.2-py3-none-any.whl (3.5 MB view details)

Uploaded Python 3

File details

Details for the file swh.loader.svn-0.3.2.tar.gz.

File metadata

  • Download URL: swh.loader.svn-0.3.2.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.3

File hashes

Hashes for swh.loader.svn-0.3.2.tar.gz
Algorithm Hash digest
SHA256 7923f79c6b8ca89e706055341f6e5e3c1942497006b8474dcc8197c206ec13d2
MD5 242d0e2bac0a3c650cd7cb63d0efa9bd
BLAKE2b-256 f8cf914afde865f7ced97e38c300e52b26301cfaed05b92ae229e8e3697488ff

See more details on using hashes here.

File details

Details for the file swh.loader.svn-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: swh.loader.svn-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.3

File hashes

Hashes for swh.loader.svn-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3a1fc768254c11743a8311d5093ac11659d47b712a5929ec436b284ba9b0d665
MD5 9ff5fffda6b3b9eb6543d0abb9069330
BLAKE2b-256 df2aa44f99a99bd0bbcacd452208c88a7697574f46394a6c5ae1b8647a68283d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page