mercurial/hook.py
branchstable
changeset 11469 c37f35d7f2f5
parent 10263 25e572394f5c
child 13118 789e0fa2fcea
--- a/mercurial/hook.py	Wed Jun 23 13:44:07 2010 +0200
+++ b/mercurial/hook.py	Wed Jun 30 18:15:23 2010 -0500
@@ -98,7 +98,10 @@
         cwd = repo.root
     else:
         cwd = os.getcwd()
-    r = util.system(cmd, environ=env, cwd=cwd)
+    if 'HG_URL' in env and env['HG_URL'].startswith('remote:http'):
+        r = util.system(cmd, environ=env, cwd=cwd, out=ui)
+    else:
+        r = util.system(cmd, environ=env, cwd=cwd)
     if r:
         desc, r = util.explain_exit(r)
         if throw: