Solution for baz2bzr revision ids on windows

John Arbash Meinel john at arbash-meinel.com
Wed Jan 11 15:26:47 GMT 2006


Aaron Bentley wrote:
> John Arbash Meinel wrote:
> 
>>>I have a somewhat pressing need to have the revision-id problem solved.
> 
> 
>>>If I have to, I'll just hack baz2bzr to use # instead of : or somesuch.
>>>(I can use Arch-2# instead of Arch-1: if preferred)
>>>
>>>This page has the forbidden list:
>>>http://www.grouplogic.com/Knowledge/index.cfm?fuseaction=view&docID=111
>>>/ ? < > \ : * | " ^
>>>
>>>^ is only illegal on FAT
> 

I should also comment that urllib quotes all of the forbidden characters
except '/'

>>> urllib.quote('/?<>\:*|"^')
'/%3F%3C%3E%5C%3A%2A%7C%22%5E'

John
=:->

> 
> Okay, I think we should make this Arch-2.  It's going to hurt anyhow, so
> we might as well pull the bandaid off quickly.  Since all we're changing
> is the namespace, I'd like an option to generate Arch-1 style revision-ids.
> 
> I would like to avoid this situation in the future, so I think we should
> make all ids escaped utf8-encoded strings that cannot include any
> forbidden characters.
> 
> This would permit using any character as the namespace separator, but
> for the sake of aesthetics, I think we should use a different character.
>  Semicolon and comma are my leading candidates.
> 
> If we use URL escaping, we should also change the Arch path separator,
> since % would be %25.  If it's going to be escaped anyhow, we should use
> %2f.  Otherwise, suggestions for an alternate character are welcome.
> 
> Do you have the time to do this work?
> 
> Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060111/306df46d/attachment.pgp 


More information about the bazaar mailing list