Illegal Filesystem characters in revision names
Martin Pool
mbp at sourcefrog.net
Wed Dec 7 03:47:03 GMT 2005
On 6 Dec 2005, Aaron Bentley <aaron.bentley at utoronto.ca> wrote:
>
> Robert Collins wrote:
> | My preference is to escape characters we dont want, which could be
> | anything outside the legitimate URL character set (i.e. all non-7bit
> | ascii characters and some of those too). This makes it as simple as
> | possible for interoperation with other systems that have an analagous
> | concept. I.e. to convert CVS one might use the CVS repository prefix +
> | the dotted decimal revision to create a bzr rev id.
>
> I agree. I'd add that using the filesystem naming restrictions feels to
> me like a very leaky abstraction, and a very ill-defined one. It
> sacrifices utility and predictability for ease-of implementation.
>
> Having an irregular system like this forces other layers to do encoding
> and decoding, violating DRY.
I don't see how a rule of "ids must only use certain specified
characters" will violate Don't Repeat Yourself. We have to specify
something about what is allowed - at least that it is either a byte or
unicode string.
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051207/94674af0/attachment.pgp
More information about the bazaar
mailing list