It drives me crazy, so any advice from other users would be welcome. I am using Subversion with a copy of VisualSVN 1.6.1 installed on a Windows server. On my PC, I use a combination of TortoiseSVN and the wonderful AnkhSVN Visual Studio plugin. Everything works like a dream, but now I'm trying to use a function svn:keywords, so I can include $Id$all of my source files at the beginning. Now for existing files, I can edit the SVN properties and add this keyword, and everything works fine, but I want it to be done automatically for new files, and I cannot get it to work.
In accordance with the documentation, you need to edit the special Subversion configuration file located in your folder C:\Documents and Settings\<user>\Application Data\Subversion. My PC already had a copy of this file, so I changed it like this:
[miscellany]
enable-auto-props = yes
[auto-props]
*.cpp = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
*.hpp = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
*.rc = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
*.rc2 = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
*.cc = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
*.c = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
*.h = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
*.wsf = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
*.js = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
*.htm = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
*.html = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
*.css = svn:eol-style=native;svn:keywords=Author Date Id HeadURL Revision
Then I added a new file to an existing Visual Studio project (from Visual Studio), added it $Id$to the beginning and fixed it, but, alas, the property was svn:keywordsnot set.
Does anyone know how to do this? I even tried to add the settings to the registry (in HKEY_CURRENT_USER\Software\Tigris.org\Subversion\Config), but still not happy. Then I tried to connect to the Config files on the SVN server itself, but nothing worked.
I clearly missed something dazzlingly obvious!
source
share