SVN Keyword Substitution

Last updated: 2008 Sep 11

To enable keyword substitution that will give the tag info, give the command:

svn propset:keywords "URL" foo.c

where foo.c is the name of a file in the SVN repository (doc).
Then in that file, foo.c, the statement:

static char *url = "$URL:";
will become, after giving the command svn commit, for example:

static char *url = "$URL: http:/blah.com/svn/trunk/foo.c $";

Subversion subsitution keywords:
Datelast date/time of change in the repositoty
Revision (Rev)last know revision number
Authoruse who made last change
HeadURLfull URL to latest version of file
Idfilename Rev Date Author

A way to get a complete list of tags is the svn command:

svn ls --verbose http://blah.com/svn/trunk/