You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Jason K. Fritcher" <jk...@wolfnet.org> on 2004/04/01 09:15:54 UTC

Auto-props file pattern match problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I've recently started using SVN, and while setting up auto-props to apply
eol-styles to my source files as I import them, I've run across a problem
with pattern matches that don't work.

I'm trying to make a rule to catch both Makefile* and makefile*. The pattern
I'm trying to use is '[Mm]akefile*', without the 's. Unfortunately, it
doesn't work. If I split those out into two seperate patterns, 'Makefile*'
and 'makefile*' it works just fine, but I'd like to condense them into one
pattern.

I've tried poking through the source code, but I don't see any obvious
reason why it wouldn't work. From what I can see, the code appears to call
apr_fnmatch to do the actual pattern matches. I've written a test program
that calls apr_fnmatch directly and the combined pattern above matches
things correctly. So I'm lost as to what the actual problem might be.

Any suggestions as to what might be wrong and how I can fix it?

Thanks.

- -- 
 Jason K. Fritcher
  jkf@wolfnet.org

pub  1024D/85D1A012 2003-03-04 Jason K. Fritcher <jk...@wolfnet.org>
     Key fingerprint = AFA3 B816 DECD AC49 4B40  0C28 38F8 83E0 85D1 A012

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)
Comment: http://www.wolfnet.org/~jkf/jkf.asc

iD8DBQFAa93QOPiD4IXRoBIRAovfAJ4+yJk6qlf+FOSBSomuYlND3EQynQCgkP29
4EbsudfR2M/NWLm+EUdAT3k=
=UCLB
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Auto-props file pattern match problem

Posted by "Jason K. Fritcher" <jk...@wolfnet.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 1 Apr 2004, C.A.T.Magic wrote:
> Jason K. Fritcher wrote:
> > I'm trying to make a rule to catch both Makefile* and makefile*. The pattern
> > I'm trying to use is '[Mm]akefile*', without the 's. Unfortunately, it
> > doesn't work. If I split those out into two seperate patterns, 'Makefile*'
> > and 'makefile*' it works just fine, but I'd like to condense them into one
> > pattern.
>
> i guess the config parser interprets the first '[' craracter
> as a chapter marker like in ' [auto-props] ' ?

Good call. I totally missed that possibility. That also explains why all of
my patterns after that one got pooched too. I guess I'm just stuck using
seperate patterns for those two then.

Thanks!

- -- 
 Jason K. Fritcher
  jkf@wolfnet.org

pub  1024D/85D1A012 2003-03-04 Jason K. Fritcher <jk...@wolfnet.org>
     Key fingerprint = AFA3 B816 DECD AC49 4B40  0C28 38F8 83E0 85D1 A012

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)
Comment: http://www.wolfnet.org/~jkf/jkf.asc

iD8DBQFAbGYkOPiD4IXRoBIRAl2cAKCcjBRaFau7SvpjlZIwBZ48U1rMFACcDr/3
KwmThYblrFFQtTMybkhtCyM=
=hu7T
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Auto-props file pattern match problem

Posted by "C.A.T.Magic" <c....@gmx.at>.

Jason K. Fritcher wrote:
> I'm trying to make a rule to catch both Makefile* and makefile*. The pattern
> I'm trying to use is '[Mm]akefile*', without the 's. Unfortunately, it
> doesn't work. If I split those out into two seperate patterns, 'Makefile*'
> and 'makefile*' it works just fine, but I'd like to condense them into one
> pattern.

i guess the config parser interprets the first '[' craracter
as a chapter marker like in ' [auto-props] ' ?

=====
:-)
c.a.t.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org