tony ~ python3
Python 3.6.4 (default, Jan 5 2018, 02:13:53)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> archive_name = 'latest/jackalopetears-wifi-propeller-load-source-archive.zip' # worker lost -> big archive
>>> #archive_name = 'latest/pcbranders-testingofpmc-source-archive.zip' # worker lost -> big archive
... #archive_name = 'latest/exposong-source-archive.zip' # command error -> corrupted
... #archive_name = 'the-sandbox-hg.zip'
... #archive_name = '0nima0-f-source-archive.zip' # problem unpacking release (fixed)
... #archive_name = 'xiaowei8868-asmack-source-archive.zip' # bundle command error (not reproduced)
... #archive_name = 'abishekahluwalia-testgs-source-archive.zip' # bundle command error (not reproduced)
... #archive_name = 'johannessaam-trunk-source-archive.zip' # bundle command error (not reproduced)
... #archive_name = 'johnbrugge-pipeline-modules-source-archive.zip' # not hex found
... rootpath = '/home/storage/hg/repo'
>>> origin_url = 'https://%s/googlecode/hg' % archive_name
>>>
>>> import logging
>>> logging.basicConfig(level=logging.DEBUG)
>>>
>>> from swh.loader.mercurial.tasks import LoadArchiveMercurialTsk
>>>
>>> archive_path = '%s/%s' % (rootpath, archive_name)
>>> t = LoadArchiveMercurialTsk()
>>> t.run(origin_url=origin_url, archive_path=archive_path, visit_date='2016-05-03T15:16:32+00:00')
patool: Extracting /home/storage/hg/repo/latest/jackalopetears-wifi-propeller-load-source-archive.zip ...
patool: running /usr/bin/7z x -y -o/home/tony/workspace/swh.loader.mercurial.2cpyrait -- /home/storage/hg/repo/latest/jackalopetears-wifi-propeller-load-source-archive.zip
patool: ... /home/storage/hg/repo/latest/jackalopetears-wifi-propeller-load-source-archive.zip extracted to `/home/tony/workspace/swh.loader.mercurial.2cpyrait'.
INFO:swh.scheduler.task.LoadArchiveMercurialTsk:From https://latest/jackalopetears-wifi-propeller-load-source-archive.zip/googlecode/hg - Uncompressing archive jackalopetears-wifi-propeller-load-source-archive.zip at /home/tony/workspace/swh.loader.mercurial.2cpyrait/jackalopetears-wifi-propeller-load-source-archive
DEBUG:swh.scheduler.task.LoadArchiveMercurialTsk:Bundling at /home/tony/workspace/swh.loader.mercurial.2cpyrait/jackalopetears-wifi-propeller-load/HG20_none_bundle
DEBUG:swh.scheduler.task.LoadArchiveMercurialTsk:Creating hg origin for https://latest/jackalopetears-wifi-propeller-load-source-archive.zip/googlecode/hg
DEBUG:swh.scheduler.task.LoadArchiveMercurialTsk:Done creating hg origin for https://latest/jackalopetears-wifi-propeller-load-source-archive.zip/googlecode/hg
DEBUG:swh.scheduler.task.LoadArchiveMercurialTsk:Creating origin_visit for origin 1 at time 2016-05-03 15:16:32+00:00
DEBUG:swh.scheduler.task.LoadArchiveMercurialTsk:Done Creating origin_visit for origin 1 at time 2016-05-03 15:16:32+00:00
INFO:sqlitedict:opening Sqlite table 'swhtable' in /home/tony/workspace/swh.loader.mercurial.2cpyrait/jackalopetears-wifi-propeller-load/sqldict94aa0e
INFO:sqlitedict:opening Sqlite table 'swhtable' in /tmp/sqldict4dc1a6