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

Re: how to add $Id$ automatically

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-11-19 14:15:47 CET

On Nov 19, 2007 7:11 AM, Soo-Hyun Choi <s.choi@hackers.org.uk> wrote:
> Hi,
>
> I have a question on adding $Id$ (and $Revision$, $Author$ etc) information
> to a file.
>
> I have modified "~/.subversion/config" such that uncomment
> "enable-auto-props = yes" and added "* = svn:keywords="Author Date Id Rev
> URL" at "[auto-props]" section in that file. And I have included $Id$ in a
> file, hoping to update the "Id" information automatically when I commit the
> file.
>
> But, I still don't get the $Id$ field updated automatically as I commit that
> file.
>
> Am I doing something wrong here?

Auto-props only take effect when a file is initially added to your
repository. It does not affect files already in your repository. You
need to set the svn:keywords property on those files.

BTW, be very careful with what you've done there. You've told your
client to apply those keywords to *all* files. If you have binary
files (MS Word, images, executables, etc.) you may unwittingly corrupt
them by enabling keywords on them.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 19 14:20:25 2007

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.