Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7066580
D434.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D434.diff
View Options
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -48,6 +48,8 @@
## toplevel
+### local svn repository
+
```
$ python3
repo = 'pyang-repo-r343-eol-native-mixed-lf-crlf'
@@ -63,11 +65,32 @@
t = LoadSvnRepository()
t.run(svn_url=svn_url,
- destination_path='/tmp',
origin_url=origin_url, visit_date='2016-05-03T15:16:32+00:00',
start_from_scratch=True)
```
+### 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)
+```
+
## Production like
start worker instance
@@ -116,4 +139,3 @@
## Produce archive of svndumps list to load
see. `python3 -m swh.loader.svn.producer svn-archive --help`
-
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Nov 5 2024, 3:24 PM (12 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3227536
Attached To
D434: svn.loader: Uncompress the tarball during the `prepare` call
Event Timeline
Log In to Comment