Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163575
D1894.id6357.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
897 B
Subscribers
None
D1894.id6357.diff
View Options
diff --git a/swh/loader/mercurial/loader.py b/swh/loader/mercurial/loader.py
--- a/swh/loader/mercurial/loader.py
+++ b/swh/loader/mercurial/loader.py
@@ -64,6 +64,8 @@
'cache2_size': ('int', 800*1024*1024),
}
+ visit_type = 'hg'
+
def __init__(self, logging_class='swh.loader.mercurial.Bundle20Loader'):
super().__init__(logging_class=logging_class)
self.content_max_size_limit = self.config['content_size_limit']
@@ -120,7 +122,7 @@
def prepare_origin_visit(self, *, origin_url, visit_date, **kwargs):
self.origin_url = origin_url
- self.origin = {'url': self.origin_url, 'type': 'hg'}
+ self.origin = {'url': self.origin_url, 'type': self.visit_type}
if isinstance(visit_date, str): # visit_date can be string or datetime
visit_date = parser.parse(visit_date)
self.visit_date = visit_date
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 10:38 AM (1 w, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217649
Attached To
D1894: Add attribute visit_type to mercurial loader.
Event Timeline
Log In to Comment