data = parser.get_data()
parser.next()
- # nothing to do
+ parsed_tags[name] = (tagger, data)
def do_export(parser):
global parsed_refs, bmarks, peer
continue
elif ref.startswith('refs/tags/'):
tag = ref[len('refs/tags/'):]
+ author, msg = parsed_tags.get(tag, (None, None))
if mode == 'git':
- msg = 'Added tag %s for changeset %s' % (tag, hghex(node[:6]));
- parser.repo.tag([tag], node, msg, False, None, {})
+ if not msg:
+ msg = 'Added tag %s for changeset %s' % (tag, hghex(node[:6]));
+ parser.repo.tag([tag], node, msg, False, author[0], {})
else:
parser.repo.tag([tag], node, None, True, None, {})
print "ok %s" % ref
global marks, blob_marks, parsed_refs
global peer, mode, bad_mail, bad_name
global track_branches, force_push, is_tmp
+ global parsed_tags
alias = args[1]
url = args[2]
blob_marks = {}
parsed_refs = {}
marks = None
+ parsed_tags = {}
repo = get_repo(url, alias)
prefix = 'refs/hg/%s' % alias