git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] remote-hg: skip ill-formed references

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Aug 31, 2013, 01:39 UTC
Message-ID
<CAMP44s2f7S4STbCOuh35sgdrgAdw-2Tw1LDkjhO37hXLxX3mRQ@mail.gmail.com>
In-Reply-To
<20130831011542.GA10486@wheezy.local>
On Fri, Aug 30, 2013 at 8:15 PM, Max Kirillov <max@max630.net> wrote:
Show 10 quoted lines
> 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
Previous: Max KirillovNext: Max Kirillov
Message 2 of 6 in “remote-hg: skip ill-formed references”
  1. remote-hg: skip ill-formed referencesMax Kirillov, Aug 31, 2013
  2. Felipe ContrerasAug 31, 2013
  3. Max KirillovAug 31, 2013
  4. Felipe ContrerasAug 31, 2013
  5. Felipe ContrerasAug 31, 2013
  6. Max KirillovAug 31, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.