From: Felipe Contreras Date: Thu, 11 Apr 2013 12:23:08 GMT Subject: [PATCH v4 12/21] remote-hg: push to the appropriate branch Message-ID: <1365682997-11329-13-git-send-email-felipe.contreras@gmail.com> In-Reply-To: <1365682997-11329-1-git-send-email-felipe.contreras@gmail.com> From: Dusty Phillips Signed-off-by: Felipe Contreras --- contrib/remote-helpers/git-remote-hg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index fc04f81..ec599c6 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -625,6 +625,10 @@ def parse_commit(parser): if merge_mark: get_merge_files(repo, p1, p2, files) + # Check if the ref is supposed to be a named branch + if ref.startswith('refs/heads/branches/'): + extra['branch'] = ref[len('refs/heads/branches/'):] + if mode == 'hg': i = data.find('\n--HG--\n') if i >= 0: -- 1.8.2.1