Question

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?

Was it helpful?

Solution

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

OTHER TIPS

You need the correct syntax. i.e. it's not $Id$, you need $Id: $. Then the value gets put here: $Id: value $

I think that keywords are case sensitive. Try this:

svn:keywords = Author Id Revision LastChangedDate Copyright
Copyright = (c) 2009 Foo Company.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top