Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remote-hg: push to the appropriate branch
author
Dusty Phillips
<dusty@linux.ca>
Thu, 11 Apr 2013 12:23:08 +0000
(07:23 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 11 Apr 2013 17:46:47 +0000
(10:46 -0700)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/git-remote-hg
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
7a6c185
)
diff --git
a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index fc04f81326eba7787d360b247faf81e7810ca4fb..ec599c60ff019ebfe4e0eb867996c24955ff8feb 100755
(executable)
--- 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: