Personal tools
You are here: Home FAQ How to ... svn keyword

svn keyword

by Kuiyu Chang last modified Aug 28, 2008 11:51 PM

add self-updating SVN keyword inside source file

  1. Insert the following text fragment into the comment portion of your source file, e.g., mysourcefile.js
    // $Id$
  2. On the command line tell svn you are tagging your file with a keyword as follows:
    svn propset svn:keywords "Id" mysourcefile.js
  3. 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

 

 

Document Actions
« March 2010 »
March
MoTuWeThFrSaSu
1234567
891011121314
15161718192021
22232425262728
293031