git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felipe Contreras <felipe.contreras@gmail.com>
To: git@vger.kernel.org
Cc: Daniel Liew <delcypher@gmail.com>,
	Felipe Contreras <felipe.contreras@gmail.com>
Subject: [PATCH 6/8] git-remote-hg: use internal clone's hgrc
Date: Tue, 29 Apr 2014 04:04:33 -0500	[thread overview]
Message-ID: <1398762275-346-7-git-send-email-felipe.contreras@gmail.com> (raw)
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

  parent reply	other threads:[~2014-04-29  9:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-29  9:04 [PATCH 0/8] remote-helper: fixes Felipe Contreras
2014-04-29  9:04 ` [PATCH 1/8] remote-hg: fix parsing of custom committer Felipe Contreras
2014-04-29  9:04 ` [PATCH 2/8] remote-hg: update to 'public' phase when pushing Felipe Contreras
2014-04-29  9:04 ` [PATCH 3/8] remote-{hg,bzr}: store marks only on success Felipe Contreras
2014-04-29  9:04 ` [PATCH 4/8] remote-hg: properly detect missing contexts Felipe Contreras
2014-04-29  9:04 ` [PATCH 5/8] t: remote-hg: split into setup test Felipe Contreras
2014-04-29  9:04 ` Felipe Contreras [this message]
2014-04-29  9:04 ` [PATCH 7/8] remote-hg: make sure we omit multiple heads Felipe Contreras
2014-04-29  9:04 ` [PATCH 8/8] remote-hg: trivial cleanups Felipe Contreras
2014-04-29 22:06   ` Philip Oakley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1398762275-346-7-git-send-email-felipe.contreras@gmail.com \
    --to=felipe.contreras@gmail.com \
    --cc=delcypher@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).