From 0ce00d7dbb213d8698dbaf39bedb35c046533c4d Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Thu, 11 Apr 2013 07:23:03 -0500 Subject: [PATCH] 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 --- git-remote-hg | 1 + 1 file changed, 1 insertion(+) diff --git a/git-remote-hg b/git-remote-hg index bf3aafe..f89eea0 100755 --- a/git-remote-hg +++ b/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)