Tuesday, July 1, 2008

Automating insertion of revision number and other information with SVN

















Select all the files in which you want to update the revision number and other details.























Right click and select the Properties tab. Select the Subversion tab and click on properties.
































Set it as shown above in the figure or you may want to have particular settings.


In every file for the first time you have to put the following string

$Id:$


When you commit it to repository it will update these fields to

Ex.

* $Id: display.cpp 27 2008-06-10 08:12:35Z m.patel $


Hope this helps..


-Mihir