hgk: forward command output to ui.fout consistently
authorYuya Nishihara <yuya@tcha.org>
Wed, 12 Nov 2014 21:53:44 +0900
changeset 23267 d7ce6e56b070
parent 23266 3480c07fc934
child 23268 0fd3862ef425
hgk: forward command output to ui.fout consistently Nobody would want to run hgk in command server, but it should work in principle. This fixes possible data corruption of command-server channel.
hgext/hgk.py
--- a/hgext/hgk.py	Tue Nov 11 18:43:19 2014 -0600
+++ b/hgext/hgk.py	Wed Nov 12 21:53:44 2014 +0900
@@ -349,4 +349,4 @@
     optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems() if v])
     cmd = ui.config("hgk", "path", "hgk") + " %s %s" % (optstr, " ".join(etc))
     ui.debug("running %s\n" % cmd)
-    util.system(cmd)
+    util.system(cmd, out=ui.fout)