Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remote-hg: write tags in the appropriate branch
author
Felipe Contreras
<felipe.contreras@gmail.com>
Mon, 22 Apr 2013 21:55:16 +0000
(16:55 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 22 Apr 2013 22:25:54 +0000
(15:25 -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:
68d4f4f
)
diff --git
a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index f5e4ba7787186609b58facefb50e6e3086faa005..f685990c8c3ce27ef437b33b19983baac5999f87 100755
(executable)
--- a/
contrib/remote-helpers/git-remote-hg
+++ b/
contrib/remote-helpers/git-remote-hg
@@
-725,7
+725,9
@@
def parse_tag(parser):
parsed_tags[name] = (tagger, data)
def write_tag(repo, tag, node, msg, author):
- tip = repo['tip']
+ branch = repo[node].branch()
+ tip = branch_tip(repo, branch)
+ tip = repo[tip]
def getfilectx(repo, memctx, f):
try:
@@
-744,7
+746,7
@@
def write_tag(repo, tag, node, msg, author):
ctx = context.memctx(repo, (p1, p2), msg,
['.hgtags'], getfilectx,
- user, (date, tz), {})
+ user, (date, tz), {
'branch' : branch
})
tmp = encoding.encoding
encoding.encoding = 'utf-8'