How to use custom keywords in SVN

yeyeyerman picture yeyeyerman · Sep 11, 2009 · Viewed 7.9k times · Source

I'm using a VisualSVN server and TortoiseSVN client. I have set the properties

svn:keywords = Author Id Revision LastChangedDate Copyright
copyright = (c) 2009 Foo Company.

Then, when I try to use these properties in the header file (including the custom property Copyright), I do it like:

/******************************************************************************
* $Id$
* 
* $Author$
*
* $Revision$
*
* $LastChangedDate$
*
* $Copyright$
******************************************************************************/

Every property is getting substituted right, except for the Copyright. What am I still missing?

Answer

myron-semack picture myron-semack · Sep 11, 2009

Prior to SVN 1.8, custom keywords were unsupported by SVN.

Here are the supported keywords, and how they work. http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html

Custom keywords had been a feature request for some time. http://subversion.tigris.org/issues/show_bug.cgi?id=890

The feature was finally added as of SVN 1.8 (thanks MarkusSchaber). https://subversion.apache.org/docs/release-notes/1.8#custom-keywords