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 <delcypher@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Daniel Liew
2014-02-21 15:17:16 +00:00
committed by Felipe Contreras
parent 32d4f36f22
commit 184551c71d

View File

@@ -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)