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

Re: auto-props and svn:keywords

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-05-16 15:41:44 CEST

On Sun, 2004-05-16 at 01:57, Eric wrote:
> Currently I manually set replacement tags with `svn propset svn:keywords
> "Id" *.*`. I know global repository config file

You know that there's no such thing as a "global repository config
file", right? You haven't created the 'config' file in the repository,
have you? It should be in your ~/.subversion/ area.

> has an option for
> auto-props, but I cannot get it to work correctly:
>
> -- config --
> (... cut off)
> [miscellany]
> enable-auto-props = yes
>
> [auto-props]
> *.txt = svn:eol-style=LF
> *.png = svn:mime-type=image/png
> *.jpg = svn:mime-type=image/jpeg
> *.gif = svn:mime-type=image/gif
> *.php = svn:keywords="Id";svn:eol-style=LF
>
> However, none of them seem to take effect. If I commit a DOS file (\r\n) or
> a MAC file (\r\r) it retains the original line endings (while they should be
> converted to solely \n). The $Id$ tag is not replaced, either. Is this a bug
> or config problem?

Auto-props are only used when you 'svn add' or 'svn import' a file. If
a file is already under version control, then nothing will happen.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun May 16 15:48:06 2004

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.