Darren
Darren

Reputation: 11011

How to reset Subversion $Id$ tag?

Hey all, I deleted my files from a project I was working on and rechecked it out. However even though my client is configured to recognize $Id$ tags, it is now no longer updating them.

My config file is as follows:

[miscellany]
enable-auto-props = yes

[auto-props]
*.php = svn:keywords=Id
*.js = svn:keywords=Id

And I have ran:

find . \( -name "*.php" -o -name "*.js" \) -exec svn propset svn:keywords Id {} \;

Still, it is not updating the $Id$ tags. Do I have to reset these somehow?

Upvotes: 1

Views: 984

Answers (1)

David W.
David W.

Reputation: 107060

Is there a svn:keywords property on the file itself inside your source repository?

The autoproperties [auto-props] is only for new files and not files already in your Subversion repository. The idea of autoproperties is to automatically attach a property to a new file when you do an svn add.

To add the svn:keywords property, do the following:

$ svn propset svn:keywords "Id" $FILE_NAME
$ svn commit -m"Added Id Keyword to file"

Upvotes: 3

Related Questions