Auto Requisition Subversion

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!

+5
source share
4

, AnkhSVN. , Visual Studio ( AnkhSVN 2.0.5250). , Tortoisvn.

VisualSVN ( Visual Studio). . , Visual Studio.

0

, - :)

[auto-props]
*.cpp = svn:eol-style=native;svn:keywords="Author Date Id HeadURL Revision"
+5

, , TortoiseSVN: Subversion Wiki.

, , , , , Fedora, Windows:

+1

This seems to be a problem with AnkhSVN. I did some tests outside of Visual Studio, using TortoiseSVN to add files, and it started working (using my custom configuration file). I will try the last AnkhSVN to find out does not matter.

I would prefer it to be done on the server, but this is similar to the user interface.

Anyway, thanks for the Len and Schneider pointers.

0
source

All Articles