git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc
@ 2014-02-21 15:17 Daniel Liew
  2014-03-24 15:07 ` Delcypher
  2014-04-12 20:01 ` Felipe Contreras
  0 siblings, 2 replies; 10+ messages in thread
From: Daniel Liew @ 2014-02-21 15:17 UTC (permalink / raw)
  To: git; +Cc: felipe.contreras

git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/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.

Prior to this patch the mercurial repository's hgrc file was ignored
which I consider to be a bug.

Signed-off-by: Dan Liew <delcypher@gmail.com>
---
 contrib/remote-helpers/git-remote-hg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index eb89ef6..451842a 100755
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -421,7 +421,7 @@ def get_repo(url, alias):

         repo = hg.repository(myui, local_path)
         try:
-            peer = hg.peer(myui, {}, url)
+            peer = hg.peer(repo._unfilteredrepo.ui, {}, url)
         except:
             die('Repository error')
         repo.pull(peer, heads=None, force=True)
-- 
1.9.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-04-20 21:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-21 15:17 [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc Daniel Liew
2014-03-24 15:07 ` Delcypher
2014-04-12 20:01 ` Felipe Contreras
2014-04-15 15:37   ` Delcypher
2014-04-20 18:12     ` Felipe Contreras
2014-04-20 19:57       ` Delcypher
2014-04-20 19:54         ` Felipe Contreras
2014-04-20 20:36           ` Delcypher
2014-04-20 20:48             ` Felipe Contreras
2014-04-20 21:25               ` Delcypher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).