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

Re: How to get keywords automatically set, and ?auto-props flag to svn add?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-11-11 23:26:13 CET

On Tue, 2003-11-11 at 14:36, tnoell@lexmark.com wrote:

> 1. How can I get subversion to automatically set the svn:keywords property
> for all files? Can I compile this in as a default or something?

It's a new feature, not yet documented in the book, but it's documented
in your ~/.subversion/config file. You probably need to move your old
~/.subversion file out of the way, so that 'svn' can build you a new
one. Here's the excerpt:

### Set enable-auto-props to 'yes' to enable automatic properties
### for 'svn add' and 'svn import', it defaults to 'no'.
### Automatic properties are defined in the section 'auto-props'.
enable-auto-props = yes

### Section for configuring automatic properties.
### The format of the entries is:
### file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain * as wildcard. All entries
### which match will be applied to the file.
*.c = svn:eol-style=native
*.cpp = svn:eol-style=native
*.h = svn:eol-style=native
*.dsp = svn:eol-style=CRLF
*.dsw = svn:eol-style=CRLF
*.sh = svn:eol-style=native;svn:executable
*.txt = svn:eol-style=native
*.png = svn:mimetype=image/png
*.jpg = svn:mimetype=image/jpeg
Makefile = svn:eol-style=native

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 11 23:26:58 2003

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

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