Enabling Keyword Substitution in Subversion

The most meaningful substitutions are $Id$ and $URL$.

To enable these for an individual file, type this:

svn propset svn:keywords "Id URL" myfile

That’s a lot of typing for large projects and a lot of upkeep. To enable these for certain file extensions that you svn add, type the following in ~/.subversion/config

[miscellany]
enable-auto-props = yes

[auto-props]
*.cpp = svn:keywords=Id URL
*.sh = svn:keywords=Id URL;svn:executable
...

This file likely exists with a bunch of commented out stuff. BE SURE THAT THE svn:keywords IN [auto-props] DOES NOT HAVE QUOTES.


svn

88 Words

2010-08-09 16:59 +0000