Browse Source

remote-hg: update tags globally

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Felipe Contreras 12 years ago committed by Junio C Hamano
parent
commit
7a6c1859b6
  1. 6
      contrib/remote-helpers/git-remote-hg

6
contrib/remote-helpers/git-remote-hg

@ -715,7 +715,11 @@ def do_export(parser): @@ -715,7 +715,11 @@ def do_export(parser):
continue
elif ref.startswith('refs/tags/'):
tag = ref[len('refs/tags/'):]
parser.repo.tag([tag], node, None, True, None, {})
if mode == 'git':
msg = 'Added tag %s for changeset %s' % (tag, hghex(node[:6]));
parser.repo.tag([tag], node, msg, False, None, {})
else:
parser.repo.tag([tag], node, None, True, None, {})
print "ok %s" % ref
else:
# transport-helper/fast-export bugs

Loading…
Cancel
Save