mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
implement new hook api for mercurial repositories
This commit is contained in:
@@ -55,6 +55,9 @@ def callHookUrl(ui, repo, hooktype, node):
|
||||
conn = opener.open(req)
|
||||
if conn.code >= 200 and conn.code < 300:
|
||||
ui.debug( "scm-hook " + hooktype + " success with status code " + str(conn.code) + "\n" )
|
||||
for line in conn:
|
||||
if line.startswith("_e") or line.startswith("_n"):
|
||||
ui.warn(line[2:]);
|
||||
abort = False
|
||||
else:
|
||||
ui.warn( "ERROR: scm-hook failed with error code " + str(conn.code) + "\n" )
|
||||
|
||||
Reference in New Issue
Block a user