18 Mar
by: Matt in Development, Infrastructure
tags: keyword substitution, subversion, svn, svn:keywords
Ever see those pretty comments at the top of a source code file under version control via subversion? It's really rather simple to setup.
Assuming you're past the point where you have a repository with files already under version control, you simply add in wherever you want the substitution to occur the variable name surrounded by $.
/* SVN: $Id$ */ /** * Short Description * * Long Description * * @package mypackage * @lastmodified $Date$ * @modifiedby $LastChangedBy$ * @version $Revision$ */
Then you run the svn propset command in your working directory:
svn propset svn:keywords "Id Date LastChangedBy Revision" . -R
Remember, you need to set properties to all new files you add, this is NOT done automatically!
Related posts:
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.