[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: Blair Zajac <blair_at_orcaware.com>
Date: 2003-08-17 23:49:40 CEST

Martin Furter wrote:
>
> Hello
>
> I made a little patch which adds a new feature: automatic adding of
> properties when adding files.
> Attached is a patch for subversion/libsvn_client/add.c
>
> After adding the patch you can define a new section in
> ~/.subversion/config and add entries describing the properties.
>
> There are 3 types of entries: exact matches, suffix matches and the
> default.
> Exact matches have the highest priority, the default match the lowest. The
> longer a suffix match is the higher it's priority.
>
> Here is an example config:
>
> [auto-props]
> * = svn:executable
> *.txt = svn:eol-style=native
> *.old.txt =
> *.sh = svn:eol-style=LF;svn:executable
> README.old.txt = svn:eol-style=CRLF
> Makefile = svn:eol-style=LF
>
> The format of the properties is name=value;name=value;...
> For boolean properties only the name is specified.
>
> I think this simple feature is enough for 99% of the use cases, making it
> more complex would also make the config more complex and less human
> readable.
>
> Probably some cleanup of the code is needed, and extensive testing, so if
> you like the patch just ask me.

The svn_load_dirs.pl script already does something like this with it's
-p command line option. It would be good if the method in add and possibly
import were consistent with svn_load_dirs.pl or both were changed.

See tools/client-side/svn_load_dirs.README and
svn_load_dirs_property_table.example.

Best,
Blair

-- 
Blair Zajac <blair@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Aug 17 23:50:35 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.