Adapt the git loader to swh-model >0.4
in which extra_headers is now a top-level attribute of a Revision. Add tests that actually include having extra_header in loaded git revisions. For this, the fast-import based dump of the test git repo is replaced by a bundle dump (required to ensure things like gpg signatures are kept). A few git revisions including gpg signature, encoding and mergetag headers are also added to the git repo.
Showing
- MANIFEST.in 1 addition, 0 deletionsMANIFEST.in
- requirements-swh.txt 2 additions, 2 deletionsrequirements-swh.txt
- swh/loader/git/converters.py 9 additions, 12 deletionsswh/loader/git/converters.py
- swh/loader/git/tests/data/git-repos/example-submodule.bundle 0 additions, 0 deletionsswh/loader/git/tests/data/git-repos/example-submodule.bundle
- swh/loader/git/tests/data/git-repos/example-submodule.fast-export.xz 0 additions, 0 deletions...git/tests/data/git-repos/example-submodule.fast-export.xz
- swh/loader/git/tests/test_converters.py 128 additions, 11 deletionsswh/loader/git/tests/test_converters.py
Loading
Please register or sign in to comment