From: Dusty Phillips Date: Thu, 11 Apr 2013 12:23:08 +0000 (-0500) Subject: remote-hg: push to the appropriate branch X-Git-Tag: v1.8.3-rc0~38^2~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/11dc88f49c1dc177132fb724d46c80ae8e6a2e99 remote-hg: push to the appropriate branch Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index fc04f81326..ec599c60ff 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: