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

automatic properties

From: Martin Furter <mf_at_rola.ch>
Date: 2003-08-17 18:53:38 CEST

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.

Martin

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

Received on Sun Aug 17 18:54:56 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.