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
« January 2009 »
January
MoTuWeThFrSaSu
1234
567891011
12131415161718
19202122232425
262728293031