Commits on Source (18)
-
Antoine Lambert authored
In order to remove warnings about /apidoc/*.rst files being included multiple times in toc when building full swh documentation, prefer to include module indices only when building standalone package documentation. Also include them the proper sphinx way. Related to T4496
22854ced -
Antoine Lambert authored
This is a more meaninful name considering that module only contains a single class named SvnRepo.
a12bdaca -
Antoine Lambert authored
Add some default parameters to SvnRepo class constructor in order to simplify initialization of such object for standalone use. Make origin_url parameter of info method optional. Add some tests for the SvnRepo class.
a26bd36f -
Antoine Lambert authored
Those are simply wrappers around functions from the converters module are are nou used elsewhere.
5f5afbf4 -
Antoine Lambert authored
It prevents "Remote access object already in use" errors.
12c4d833 -
Antoine Lambert authored
It enables to get the HEAD revision number for a repository at a specific date. Related to #4727
6469711f -
Antoine Lambert authored
Subversion allow to specify the revision for an external definition as a date instead of an integer identifier. So when encountering such case, get the HEAD revision number for the external at the specified date in order to export the correct version of the files targeted by the external. Related to #4727
512f88e8 -
Antoine Lambert authored
This fixes python 3.7 support due to poetry, a dependency of isort, that removed support for that Python version in a recent release.
1efcf397 -
Antoine Lambert authored
Previously the parse_external_definition function was returning a single revision number regardless it was a revision specified with -rX or a peg revision specified with @X. However, the use and combination of these two parameters in the export command from subversion can lead to different results (see https://svnbook.red-bean.com/en/1.6/svn.advanced.pegrevs.html). So ensure to extract both revision and peg revision in order to avoid different behavior from the official subversion client when the loader exports externals.
336c4869 -
Jérémy Bobbio (Lunar) authored
Related to swh/meta#4959
1b7babf4 -
Antoine Lambert authored
Related to swh/meta#4960
dc8657b2 -
Antoine Lambert authored65cd9f57
-
Antoine Lambert authored
Recursive propget operation is terribly slow over the network, better doing it from a freshly checked out working copy as it is faster.
ab4b7e79 -
Antoine Lambert authored
That kind of error can be encoutered when loading a repository hosted on SouceForge.
ec8db359 -
Antoine Lambert authored
In order to ensure consistency between SvnLoader and SvnLoaderFromRemoteDump classes, run most of the tests with both of them. As a consequence, fix an invalid load status that was reported by the SvnLoader class when no new objects to archive have been found during a visit.
4d0950b6 -
Antoine Lambert authored
Those methods ensure URLs are properly quoted to avoid assertion failures when calling functions from the subversion C API.
0b247277 -
Antoine Lambert authored
"svnadmin load" has a --no-flush-to-disk option enabling faster load while being unsafe on power off. This drawback is not an issue for the subversion loader so use that option to significantly improve the performance for loading a repository from a dump file into a directory on the local filesystem.
15280d5d -
Antoine Lambert authored
Previously SvnLoaderFromRemoteDump class was using the repository root URL to dump a sub-project.
Showing
- .pre-commit-config.yaml 1 addition, 1 deletion.pre-commit-config.yaml
- docs/index.rst 8 additions, 1 deletiondocs/index.rst
- swh/loader/svn/loader.py 19 additions, 7 deletionsswh/loader/svn/loader.py
- swh/loader/svn/replay.py 30 additions, 20 deletionsswh/loader/svn/replay.py
- swh/loader/svn/svn_repo.py 141 additions, 100 deletionsswh/loader/svn/svn_repo.py
- swh/loader/svn/svn_retry.py 1 addition, 0 deletionsswh/loader/svn/svn_retry.py
- swh/loader/svn/tests/conftest.py 7 additions, 2 deletionsswh/loader/svn/tests/conftest.py
- swh/loader/svn/tests/test_externals.py 280 additions, 47 deletionsswh/loader/svn/tests/test_externals.py
- swh/loader/svn/tests/test_loader.py 147 additions, 81 deletionsswh/loader/svn/tests/test_loader.py
- swh/loader/svn/tests/test_svn_repo.py 112 additions, 0 deletionsswh/loader/svn/tests/test_svn_repo.py
- swh/loader/svn/tests/test_svn_retry.py 11 additions, 8 deletionsswh/loader/svn/tests/test_svn_retry.py
- swh/loader/svn/tests/test_utils.py 161 additions, 21 deletionsswh/loader/svn/tests/test_utils.py
- swh/loader/svn/tests/utils.py 25 additions, 3 deletionsswh/loader/svn/tests/utils.py
- swh/loader/svn/utils.py 96 additions, 9 deletionsswh/loader/svn/utils.py
- tox.ini 6 additions, 7 deletionstox.ini
This diff is collapsed.
This diff is collapsed.
swh/loader/svn/tests/test_svn_repo.py
0 → 100644