Changeset View
Changeset View
Standalone View
Standalone View
README.md
Show All 26 Lines | |||||
# Basic use | # Basic use | ||||
From python3's toplevel: | From python3's toplevel: | ||||
## Remote (failure) | ## Remote (failure) | ||||
``` Python | ``` Python | ||||
project = 'distutils2' | |||||
# remote repository | # remote repository | ||||
origin_url = 'https://www.mercurial-scm.org/repo/hello' | origin_url = 'https://www.mercurial-scm.org/repo/%s' % project | ||||
# local clone | # local clone | ||||
directory = '/home/storage/hg/repo/hello' | directory = '/home/storage/hg/repo/%s' % project | ||||
import logging | import logging | ||||
logging.basicConfig(level=logging.DEBUG) | logging.basicConfig(level=logging.DEBUG) | ||||
from swh.loader.mercurial.tasks import LoadMercurialTsk | from swh.loader.mercurial.tasks import LoadMercurialTsk | ||||
t = LoadMercurialTsk() | t = LoadMercurialTsk() | ||||
t.run(origin_url=origin_url, directory=directory, visit_date='2016-05-03T15:16:32+00:00') | t.run(origin_url=origin_url, directory=directory, visit_date='2016-05-03T15:16:32+00:00') | ||||
Show All 37 Lines |