You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ben Collins-Sussman <su...@collab.net> on 2003/11/11 22:26:13 UTC

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

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.
[auto-props]
*.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