remote-hg: avoid bad refs

Turns out fast-export throws bad 'reset' commands because of a behavior
in transport-helper that is not even needed.

Either way, better to ignore them, otherwise the user will get warnings
when we OK them.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:
Felipe Contreras 2012-11-12 18:41:08 +01:00 committed by Jeff King
parent 55dd56e042
commit 08c2599c32

View file

@ -704,6 +704,9 @@ def do_export(parser):
elif ref.startswith('refs/tags/'):
tag = ref[len('refs/tags/'):]
parser.repo.tag([tag], node, None, True, None, {})
else:
# transport-helper/fast-export bugs
continue
print "ok %s" % ref
print