From: Felipe Contreras Date: Thu, 11 Apr 2013 12:23:03 +0000 (-0500) Subject: remote-hg: redirect buggy mercurial output X-Git-Tag: v1.8.3-rc0~38^2~14 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/25027b983eb82b95316f362e03a207b49b033b00 remote-hg: redirect buggy mercurial output Mercurial emits messages like "searching for changes", "no changes found", etc. meant for the use of its own UI layer, which break the pipe between transport helper and remote helper. Since there's no way to silence Mercurial, let's redirect to standard error. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index b200e60c70..874ccd4e23 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -271,6 +271,7 @@ def get_repo(url, alias): myui = ui.ui() myui.setconfig('ui', 'interactive', 'off') + myui.fout = sys.stderr if hg.islocal(url): repo = hg.repository(myui, url)