diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -11,25 +11,13 @@ cls: remote args: url: http://localhost:5002/ - -send_contents: True -send_directories: True -send_revisions: True -send_releases: True -send_occurrences: True -content_packet_size: 1000 -content_packet_size_bytes: 1073741824 -directory_packet_size: 2500 -revision_packet_size: 1000 -release_packet_size: 1000 -occurrence_packet_size: 1000 ``` # Basic use From python3's toplevel: -## Remote (failure) +## Remote ``` Python project = 'hello' @@ -47,7 +35,7 @@ t.run(origin_url=origin_url, directory=directory, visit_date='2016-05-03T15:16:32+00:00') ``` -## local directory (failure) +## local directory Only origin, contents, and directories are filled so far. @@ -61,13 +49,13 @@ import logging logging.basicConfig(level=logging.DEBUG) -from swh.loader.mercurial.tasks import SlowLoadMercurialTsk +from swh.loader.mercurial.tasks import LoadMercurialTsk -t = SlowLoadMercurialTsk() +t = LoadMercurialTsk() t.run(origin_url=origin_url, directory=directory, visit_date='2016-05-03T15:16:32+00:00') ``` -## local archive (failure) +## local archive ``` Python project = '756015-ipv6-source-archive.zip' @@ -77,8 +65,8 @@ import logging logging.basicConfig(level=logging.DEBUG) -from swh.loader.mercurial.tasks import SlowLoadMercurialArchiveTsk +from swh.loader.mercurial.tasks import LoadArchiveMercurialTsk -t = SlowLoadMercurialArchiveTsk() +t = LoadArchiveMercurialTsk() t.run(origin_url=origin_url, archive_path=archive_path, visit_date='2016-05-03T15:16:32+00:00') ```