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.
--- 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',