hook: remove redundant code to redirect http hook output to client stream
authorYuya Nishihara <yuya@tcha.org>
Wed, 12 Nov 2014 22:21:51 +0900
changeset 23268 0fd3862ef425
parent 23267 d7ce6e56b070
child 23269 d9d8d2e0f701
hook: remove redundant code to redirect http hook output to client stream out=ui and out=ui.fout should be the same here. ui.fout was introduced at afccc64eea73, which was not available when out=ui was added at c37f35d7f2f5.
mercurial/hook.py
--- a/mercurial/hook.py	Wed Nov 12 21:53:44 2014 +0900
+++ b/mercurial/hook.py	Wed Nov 12 22:21:51 2014 +0900
@@ -131,10 +131,7 @@
         cwd = repo.root
     else:
         cwd = os.getcwd()
-    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, out=ui.fout)
+    r = util.system(cmd, environ=env, cwd=cwd, out=ui.fout)
 
     duration = time.time() - starttime
     ui.log('exthook', 'exthook-%s: %s finished in %0.2f seconds\n',