From 184551c71d609d40dba3b085331d51ef9d01da38 Mon Sep 17 00:00:00 2001 From: Daniel Liew Date: Fri, 21 Feb 2014 15:17:16 +0000 Subject: [PATCH] Use internal clone's hgrc Use the hgrc configuration file in the internal mercurial repository in addition to the other system wide hgrc files. This is done by using the 'ui' object from the 'repository' object which will have loaded the repository hgrc file if it exists. Signed-off-by: Dan Liew Signed-off-by: Felipe Contreras --- git-remote-hg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-remote-hg b/git-remote-hg index 280866b..3c79daf 100755 --- a/git-remote-hg +++ b/git-remote-hg @@ -422,7 +422,7 @@ def get_repo(url, alias): repo = hg.repository(myui, local_path) try: - peer = hg.peer(myui, {}, url) + peer = hg.peer(repo.ui, {}, url) except: die('Repository error') repo.pull(peer, heads=None, force=True)