MercurialRepository.Push: improved error treatment
- we want `PeerInitException` to be about initialization of peer only. This entails a few requests already (capabilities, etc.) - we need to explicitely catch all other errors in `Push()`. I actually believe that `grpc` would convert every uncatched error into an `INTERNAL`, so that the server does not stop, but it's best not to depend on it, and it gives us a way to have a more explicit message (error was not in the push itself)
parent
bd3911e6
No related branches found
No related tags found
Showing
- hgitaly/peer.py 22 additions, 13 deletionshgitaly/peer.py
- hgitaly/service/mercurial_repository.py 5 additions, 0 deletionshgitaly/service/mercurial_repository.py
- hgitaly/service/tests/test_mercurial_repository.py 24 additions, 0 deletionshgitaly/service/tests/test_mercurial_repository.py
- hgitaly/tests/test_peer.py 56 additions, 0 deletionshgitaly/tests/test_peer.py
Loading
Please register or sign in to comment