changeset 23268:0fd3862ef425

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.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 12 Nov 2014 22:21:51 +0900
parents d7ce6e56b070
children d9d8d2e0f701
files mercurial/hook.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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',