You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by tn...@lexmark.com on 2003/11/11 20:36:53 UTC
How to get keywords automatically set, and ?auto-props flag to svn
add?
HI SVN Community:
Was playing around with keyword expansion today, and was wondering if there
is a way to get
the property
svn:keywords
set automatically on svn add?
Then I saw (in svn add --help) the options:
--auto-props
and wondered if this was it. Played around with it a bit and it didn't
seem to do what I wanted. (BTW, I also searched the users archive and the
online subversion book to no avail ...)
So, a couple of questions:
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?
2. What is svn add --auto-props ?
BTW, I am running subversion-032.1 on Linux Red Hat 8.0 ..
Thanks in advance for help/pointers,
Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How to get keywords automatically set, and ?auto-props flag to
svn add?
Posted by Ben Collins-Sussman <su...@collab.net>.
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