[RFC] handling files with weird names in .bzrignore

Marco Pantaleoni marco.pantaleoni at gmail.com
Sat May 29 14:19:41 BST 2010


On Sat, May 29, 2010 at 2:21 PM, Parth Malwankar
<parth.malwankar at gmail.com>wrote:

>
> There are at least two ways we could fix this:
>
> (1) Catch the exception and issue an error message indicating
> to the user that the given string is an invalid glob pattern
> and she should consider using "RE:" style python patterns
> and point to "bzr help patterns". "RE:\[" works fine in the case of
> this bug. We would need to ensure patterns are added to
> bzrignore only if they are valid.
>
> (2) The issue here is that there is no good way to represent
> files that have weired names. Going by GNU grep, we could allow
> a -F/--fixed-strings style patterns that would be prefixed with
> say "FS:" in .bzrignore so for this particular bug we would have
> "FS:[". "bzr ignore" would then support a -F/-fixed-string flag.
>

if you choose the second route, you could consider using a prefix less
likely to be a regular path name.
For example something like:

{literalpath}:LITERALPATH

Ciao,
Marco

-- 
Marco Pantaleoni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20100529/9d158d26/attachment.htm 


More information about the bazaar mailing list