diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-04-22 16:55:17 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-22 15:25:54 -0700 |
commit | a2f7b6f8a9775df0994a161f5e9e103b60886dc7 (patch) | |
tree | cae7a33b77cd9a6b7257f4c43e6590b5893f62f2 /contrib | |
parent | remote-hg: write tags in the appropriate branch (diff) | |
download | tgif-a2f7b6f8a9775df0994a161f5e9e103b60886dc7.tar.xz |
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 <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/remote-helpers/git-remote-hg | 4 |
1 files changed, 3 insertions, 1 deletions
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 |