Add Gitweb lister
Depending on some instances, we have some specific heuristics, some instances: - have summary pages which do not not list metadata_url (so some computation happens to list git:// origins which are cloneable) - have summary page which reference metadata_url as a multiple comma separated urls - lists relative urls of the repository so we need to join it with the main instance url to have a complete cloneable origins (or summary page) - lists "down" http origins (cloning those won't work) so lists those as cloneable https ones (when the main url is behind https). Refs. swh/devel/swh-lister#1800
Showing
- mypy.ini 3 additions, 0 deletionsmypy.ini
- requirements.txt 1 addition, 0 deletionsrequirements.txt
- setup.py 2 additions, 1 deletionsetup.py
- swh/lister/gitweb/__init__.py 12 additions, 0 deletionsswh/lister/gitweb/__init__.py
- swh/lister/gitweb/lister.py 188 additions, 0 deletionsswh/lister/gitweb/lister.py
- swh/lister/gitweb/tasks.py 16 additions, 0 deletionsswh/lister/gitweb/tasks.py
- swh/lister/gitweb/tests/__init__.py 0 additions, 0 deletionsswh/lister/gitweb/tests/__init__.py
- swh/lister/gitweb/tests/data/https_git.distorted.org.uk/README 5 additions, 0 deletions...ister/gitweb/tests/data/https_git.distorted.org.uk/README
- swh/lister/gitweb/tests/data/https_git.distorted.org.uk/foobar 123 additions, 0 deletions...ister/gitweb/tests/data/https_git.distorted.org.uk/foobar
- swh/lister/gitweb/tests/data/https_git.distorted.org.uk/~mdw 145 additions, 0 deletionsswh/lister/gitweb/tests/data/https_git.distorted.org.uk/~mdw
- swh/lister/gitweb/tests/data/https_git.distorted.org.uk/~mdw_doc_ips 179 additions, 0 deletions...gitweb/tests/data/https_git.distorted.org.uk/~mdw_doc_ips
- swh/lister/gitweb/tests/data/https_git.distorted.org.uk/~mdw_firewall 167 additions, 0 deletions...itweb/tests/data/https_git.distorted.org.uk/~mdw_firewall
- swh/lister/gitweb/tests/data/https_git.distorted.org.uk/~mdw_mdwtools 204 additions, 0 deletions...itweb/tests/data/https_git.distorted.org.uk/~mdw_mdwtools
- swh/lister/gitweb/tests/data/https_git.distorted.org.uk/~mdw_scad 91 additions, 0 deletions...er/gitweb/tests/data/https_git.distorted.org.uk/~mdw_scad
- swh/lister/gitweb/tests/data/https_git.distorted.org.uk/~mdw_strayman 210 additions, 0 deletions...itweb/tests/data/https_git.distorted.org.uk/~mdw_strayman
- swh/lister/gitweb/tests/data/https_git.distorted.org.uk/~mdw_udpkey 190 additions, 0 deletions.../gitweb/tests/data/https_git.distorted.org.uk/~mdw_udpkey
- swh/lister/gitweb/tests/data/https_git.distorted.org.uk/~mdw_vmctl 91 additions, 0 deletions...r/gitweb/tests/data/https_git.distorted.org.uk/~mdw_vmctl
- swh/lister/gitweb/tests/test_lister.py 154 additions, 0 deletionsswh/lister/gitweb/tests/test_lister.py
- swh/lister/gitweb/tests/test_tasks.py 30 additions, 0 deletionsswh/lister/gitweb/tests/test_tasks.py
- swh/lister/tests/test_cli.py 3 additions, 0 deletionsswh/lister/tests/test_cli.py
Loading
Please register or sign in to comment