RHGitaly implement HasLocalBranches
This method is mostly used to check if the repository is emtpy (and that is in the case of Mercurial logically equivalent), but it's better to implement it using the GitLab branches file as it avoids actually opening the repository, spawning a thread for blocking iteration etc.
parent
034a302e
No related branches found
No related tags found
Checking pipeline status
Showing
- rust/rhgitaly/proto/repository.proto 6 additions, 0 deletionsrust/rhgitaly/proto/repository.proto
- rust/rhgitaly/src/service/repository.rs 40 additions, 2 deletionsrust/rhgitaly/src/service/repository.rs
- tests_with_gitaly/test_repository_service.py 6 additions, 2 deletionstests_with_gitaly/test_repository_service.py
Loading
Please register or sign in to comment