From 81e743c7ff8cec432a880095c2e2c04138d3b5b0 Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Thu, 11 Apr 2013 07:23:08 -0500 Subject: [PATCH] remote-hg: push to the appropriate branch Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- git-remote-hg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-remote-hg b/git-remote-hg index 827c188..a4efc1d 100755 --- a/git-remote-hg +++ b/git-remote-hg @@ -626,6 +626,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: