wireproto: properly report server Abort during 'getbundle'
Previously Abort raised during 'getbundle' call poorly reported (HTTP-500 for http, some scary messages for ssh). Abort error have been properly reported for "push" for a long time, there is not reason to be different for 'getbundle'. We properly catch such error and report them back the best way available. For bundle, we issue a valid bundle2 reply (as expected by the client) with an 'error:abort' part. With bundle1 we do as best as we can depending of http or ssh.
Showing
- mercurial/wireproto.py 18 additions, 1 deletionmercurial/wireproto.py
- tests/crashgetbundler.py 14 additions, 0 deletionstests/crashgetbundler.py
- tests/test-http-bundle1.t 12 additions, 0 deletionstests/test-http-bundle1.t
- tests/test-http.t 12 additions, 0 deletionstests/test-http.t
- tests/test-ssh-bundle1.t 17 additions, 0 deletionstests/test-ssh-bundle1.t
- tests/test-ssh.t 14 additions, 0 deletionstests/test-ssh.t
Loading
Please register or sign in to comment