mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
inform user of mercurial hook execution
This commit is contained in:
@@ -22,4 +22,7 @@ def callback(ui, repo, hooktype, node=None, source=None, **kwargs):
|
||||
if node != None:
|
||||
url = baseUrl + os.path.basename(repo.root) + "/" + hooktype + "?node=" + node
|
||||
conn = urllib.urlopen(url);
|
||||
# todo validate (if conn.code == 200:)
|
||||
if conn.code == 200:
|
||||
print( "scm-hook executed successfully" )
|
||||
else:
|
||||
print( "scm-hook failed" )
|
||||
|
||||
Reference in New Issue
Block a user