From 7fb9d9b642cfc832f12fa6c89e43df03950307f7 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Tue, 18 Jun 2019 15:06:39 -0500 Subject: [PATCH] Load global UI confguration Since 4.1 there's a separate function for that. Signed-off-by: Felipe Contreras --- git-remote-hg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/git-remote-hg b/git-remote-hg index ceda391..e3afa97 100755 --- a/git-remote-hg +++ b/git-remote-hg @@ -401,7 +401,11 @@ def updatebookmarks(repo, peer): def get_repo(url, alias): global peer - myui = ui.ui() + if check_version(4, 1): + myui = ui.ui.load() + else: + myui = ui.ui() + myui.setconfig('ui', 'interactive', 'off') myui.fout = sys.stderr