[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] [PATCH] fix default .mtn-ignore list
From: |
Ralf S. Engelschall |
Subject: |
Re: [Monotone-devel] [PATCH] fix default .mtn-ignore list |
Date: |
Mon, 7 Jul 2008 10:00:13 +0200 |
User-agent: |
Mutt/1.5.18 OpenPKG/CURRENT (2008-05-17) |
On Sat, Jul 05, 2008, Zack Weinberg wrote:
> I don't think that adjustment does what you meant it to. The leading
> % escapes the period - without it, it's a pseudo-regex wildcard. (See
> http://www.lua.org/manual/5.1/manual.html#5.4.1 ) The dir_matches
> function is supposed to treat each of those strings as a full
> directory name, not as a partial -- in other words, it's already
> supposed not to ignore "foo.svn". If that's not working, it should be
> fixed there.
Oh, I see! Yes, you're right, of course. Lua's "regex" are not really
standard Unix regex but some sort of special patterns where "%" is
_not_ the ".*" (what I thought) but the escaping character. I have read
"%.svn" as the regex ".*\.svn" and hence I was confused. But "%.svn"
seems to be just "\.svn". Thanks for clarification and just forget my
patch!
Ralf S. Engelschall
address@hidden
www.engelschall.com