Comment 3 for bug 95109

Revision history for this message
Jonathan Lange (jml) wrote : Re: It is possible to register branches with '_' in their name

We recently discussed this at a Launchpad-Bazaar meeting. This is an edited summary:

As a general rule, we don't allow underscore in Launchpad ids that appear in URLs because they're hard to type, read out and so forth. If there's a good reason that we need underscores in branch names, and thus in URLs, then we can do so and it's not a big deal.

So, for the time being, no underscores. This means tightening the database constraints, migrating existing data and ensuring that the LP plugin and the codehosting server give helpful messages when users try to create branches with underscores. Alternatively, we could rewrite paths that contain '_' to use '-' instead.

More generally, it would be good to have a conversion function that handles underscores as well as other characters that aren't allowed on Launchpad.