mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-07-15 11:13:29 +02:00
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:
committed by
Felipe Contreras
parent
32d4f36f22
commit
184551c71d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user