Rejection by remote hook is not reported as error
Created originally on Bitbucket by Anonymous
When pushing to remote https repository and commit is blocked by remote hook it is not reported as error. Status message (above history window) is green “Push to https://... aborted, ret 1”. It should be red (error) because push failed.
Tested on remote hook: {{{ #!python
def pretxnchangegroup(ui, repo, node, **kwargs): ui.write("Error message 1\n") ui.warn("Error message 2\n") ui.status("Error message 3\n") #raise Exception("Error\n") return True }}}
Raising exception in hook is also not option because of lost output to ui.