Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392904
profile-swhgitloader.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
778 B
Subscribers
None
profile-swhgitloader.py
View Options
#!/usr/bin/env python3
# Copyright (C) 2015 Stefano Zacchiroli <zack@upsilon.cc>,
# Antoine R. Dumont <antoine.romain.dumont@gmail.com>
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import
os
from
swh.gitloader
import
loader
conf
=
{
'db_url'
:
'dbname=swhgitloader'
,
# 'repository': os.path.expanduser('./test-repo'),
'repository'
:
os
.
path
.
expanduser
(
'../debsources'
),
'content_storage_dir'
:
'/tmp/swh-git-loader/content-storage'
,
'folder_depth'
:
4
}
conf
[
'action'
]
=
'cleandb'
loader
.
load
(
conf
)
conf
[
'action'
]
=
'initdb'
loader
.
load
(
conf
)
conf
[
'action'
]
=
'load'
loader
.
load
(
conf
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Jun 4 2025, 7:04 PM (10 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3398927
Attached To
rDLDG Git loader
Event Timeline
Log In to Comment