[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: automatic properties

From: B. W. Fitzpatrick <fitz_at_red-bean.com>
Date: 2003-09-11 06:28:55 CEST

Martin Furter <mf@rola.ch> writes:

> AUTOPROPS_FNMATCH
>
> This version uses apr_fnmatch. It can't have default properties for
> filenames that do not match. The first match which is found wins.
>
> The problem is that the config is stored in APR hashes and i can't
> test the matches in the order as they are in the config file. So if
> i put the following to rules into the config:
>
> Makefile* = svn:eol-style=LF
> *.jpg = svn:mime-type=image/jpeg
>
> Then if i add 'Makefile.jpg' both rules can match and it is not
> defined which one will be first found in the config hash.

I'm going to focus on this one because I think it's the best way to go.

However, I think that all matches should be applied. For example

header-* = owner=fitz@red-bean.com
*.jpg = svn:mime-type=image/jpeg

So header.jpg would get both the owner and the svn:mime-type prop set.
Any reason why you wouldn't do all matches?

I haven't looked at your patch yet, but I'd really like to see some
tests for them. :)

-Fitz

--
Brian W. Fitzpatrick    <fitz_at_red-bean.com>   http://www.red-bean.com/fitz/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 11 06:29:43 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.