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>
Felipe Contreras committed
Apr 11, 2013 at 07:23 UTC
25027b983eb82b95316f362e03a207b49b033b00
1 file changed
+1
contrib/remote-helpers/git-remote-hg
+1
@@ -271,6 +271,7 @@ def get_repo(url, alias):
271
272
myui = ui.ui()
273
myui.setconfig('ui', 'interactive', 'off')
274
+ myui.fout = sys.stderr
275
276
if hg.islocal(url):
277
repo = hg.repository(myui, url)