Gitaly comparison tests: general invalidation method
The previous way of invalidating the Mercurial to Git map was to delete the cached property, but it raises an error if it has not been used before. In theory the invalidation could be removed if not necessary any more. In practice, this forces to check that it is normal. Better to encapsulate. Also, for simplicity, we also invalidate Mercurial caches by reloading the repo.
parent
88981e79
No related branches found
No related tags found
Showing
- tests_with_gitaly/comparison.py 15 additions, 2 deletionstests_with_gitaly/comparison.py
- tests_with_gitaly/test_commit.py 2 additions, 2 deletionstests_with_gitaly/test_commit.py
- tests_with_gitaly/test_comparison.py 73 additions, 0 deletionstests_with_gitaly/test_comparison.py
- tests_with_gitaly/test_ref.py 1 addition, 1 deletiontests_with_gitaly/test_ref.py
Loading
Please register or sign in to comment