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