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>
This commit is contained in:

committed by
Junio C Hamano

parent
e1760f8c2c
commit
a2f7b6f8a9
@ -797,7 +797,9 @@ def do_export(parser):
|
|||||||
msg = 'Added tag %s for changeset %s' % (tag, hghex(node[:6]));
|
msg = 'Added tag %s for changeset %s' % (tag, hghex(node[:6]));
|
||||||
write_tag(parser.repo, tag, node, msg, author)
|
write_tag(parser.repo, tag, node, msg, author)
|
||||||
else:
|
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
|
print "ok %s" % ref
|
||||||
else:
|
else:
|
||||||
# transport-helper/fast-export bugs
|
# transport-helper/fast-export bugs
|
||||||
|
Reference in New Issue
Block a user