[PATCH 6/8] git-remote-hg: use internal clone's hgrc
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 29, 2014, 09:04 UTC
- Message-ID
- <1398762275-346-7-git-send-email-felipe.contreras@gmail.com>
- In-Reply-To
- <1398762275-346-1-git-send-email-felipe.contreras@gmail.com>
From: Daniel Liew <delcypher@gmail.com>
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 <delcypher@gmail.com> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- git-remote-hg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git-remote-hg.py b/git-remote-hg.py index 1972f7f..cd3d79e 100755 --- a/git-remote-hg.py +++ b/git-remote-hg.py @@ -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)
-- 1.9.2+fc1.3.gade8541