[PATCH][MERGE] Improvements to is_ignored

Martin Pool mbp at sourcefrog.net
Fri Jan 13 01:50:39 GMT 2006


On 12 Jan 2006, John Arbash Meinel <john at arbash-meinel.com> wrote:
> > Hm. According to the documentation, (?u) is global. I thought it would
> > be group-local as it is in perl.
> > 
> > Hm, python does not seem to have the \P{...} escape. That's not exactly
> > good, because it means we are limited to the properties it can do.
> > 
> > I am leaning towards using re.UNICODE, because one can always write
> > [A-Za-z0-9_], so the [[:alnum:]] one should mean unicode letters.
> > 
> 
> Except we are really only creating matches from file globs. Which means
> we don't have that level of granularity. All we really have is
> * - match a string
> ? - match any character
> [] - select from this list
> [!] - select not from this list
> 
> We might add
> ** - Match including directories, and change * to not match directories

So it seems that rsync treats '**' as the glob '.*', and '*' as '[^/]*'.
(Well, there is special handling of initial dots and perhaps something
else I forget.)  I think doing that, rather than the more complex zsh
behaviour would be fine.

Perhaps in the future people would want to add REs to the patterns but I
can't think of many practical cases where they're better than slightly
extended globs, though they are perhaps easier to implement.

-- 
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/20060113/74deae48/attachment.pgp 


More information about the bazaar mailing list