dumb: Synchronize fetch_pack behavior with smart loader
As with the smart git loader, restrain the maximum size for a pack file to download. Move the code writing pack data bytes and checking size in an utility class to avoid code duplication. Add missing tests covering the cases where the pack size limit is reached.
parent
64ac0204
No related branches found
No related tags found
Showing
- swh/loader/git/dumb.py 29 additions, 3 deletionsswh/loader/git/dumb.py
- swh/loader/git/loader.py 12 additions, 34 deletionsswh/loader/git/loader.py
- swh/loader/git/tests/test_loader.py 27 additions, 0 deletionsswh/loader/git/tests/test_loader.py
- swh/loader/git/utils.py 45 additions, 1 deletionswh/loader/git/utils.py
Loading
Please register or sign in to comment