From: Felipe Contreras Date: Mon, 22 Apr 2013 21:55:17 +0000 (-0500) Subject: remote-hg: add custom local tag write code X-Git-Tag: v1.8.3-rc0~14^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2f7b6f8a9775df0994a161f5e9e103b60886dc7;p=git remote-hg: add custom local tag write code There's no point in calling the tag method for such simple action. Not that we care much about the hg-git compat mode, it's mostly just for comparison testing purposes. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index f685990c8c..3c6eeb7976 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -797,7 +797,9 @@ def do_export(parser): msg = 'Added tag %s for changeset %s' % (tag, hghex(node[:6])); write_tag(parser.repo, tag, node, msg, author) else: - parser.repo.tag([tag], node, None, True, None, {}) + fp = parser.repo.opener('localtags', 'a') + fp.write('%s %s\n' % (hghex(node), tag)) + fp.close() print "ok %s" % ref else: # transport-helper/fast-export bugs