inform user of mercurial hook execution

This commit is contained in:
Sebastian Sdorra
2011-07-22 12:25:42 +02:00
parent 46223730fb
commit 3d9601415e

View File

@@ -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" )