# HG changeset patch # User Yuya Nishihara # Date 1415796824 -32400 # Node ID d7ce6e56b0702b789ba9628a8d8a6a6400ff7194 # Parent 3480c07fc934a9c90c8dda1ed2bc98fd9c96c44a 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. diff -r 3480c07fc934 -r d7ce6e56b070 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)