summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-04-11 07:23:03 -0500
committerJunio C Hamano <gitster@pobox.com>2013-04-11 10:46:46 -0700
commit25027b983eb82b95316f362e03a207b49b033b00 (patch)
treed01390d626d727f979000646ff9908dc7db42081
parent71c6c95c310b0389f07fdbe40db6f068c1fa95a5 (diff)
downloadgit-25027b983eb82b95316f362e03a207b49b033b00.tar.gz
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 <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xcontrib/remote-helpers/git-remote-hg1
1 files changed, 1 insertions, 0 deletions
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)