svn keyword
by
Kuiyu Chang
—
last modified
Aug 28, 2008 11:51 PM
add self-updating SVN keyword inside source file
- Insert the following text fragment into the comment portion of your source file, e.g., mysourcefile.js
// $Id$
- On the command line tell svn you are tagging your file with a keyword as follows:
svn propset svn:keywords "Id" mysourcefile.js
- Commit the change to this file mysourcefile.js
svn -m "any comments" commit mysourcefile.js
Viola! From now onwards, every time you check in this mysourcefile.js file, that field will be updated with the latest details.
See http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
for more details

