From: Felipe Contreras Date: Sat, 31 Aug 2013 01:39:27 GMT Subject: Re: [PATCH] remote-hg: skip ill-formed references Message-ID: In-Reply-To: <20130831011542.GA10486@wheezy.local> On Fri, Aug 30, 2013 at 8:15 PM, Max Kirillov wrote: > References which fail check_refname_format() cause the whole > import to fail. This might be undesirable if the references > are not important. > > A better solution would be to provide some mapping, either > by some reversible encoding, or by generating and storing > the associations locally. > > But this is already going to allow working with many > existing repositories. Which repository triggered this? Maybe we should do something similar as in git-remote-bzr: def ref_is_valid(name): return not True in [c in name for c in '~^: \\'] if not ref_is_valid(tag): continue print "? refs/tags/%s" % tag -- Felipe Contreras