remote-hg: update tags globally
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d7314b3acf
commit
7a6c1859b6
@ -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…
Reference in New Issue
Block a user