Subversion for change history and login Source codes

I tried to find some resource for Subversion on how to make change history and log messages in the source code; This question can be simple

We changed CVS to Subversion. I am having a problem with how to make the change history and log message show up in source codes. In CVS, we used

/**
 * Revision:
 *  $Log$
 * 
 *
 *  $Id$
 */

      

submit CVS with a log message. I tried to put "$ Revision $ and $ Id $" in the Subversion source code; however, it does not work for updating the source code change history.

For Subversion

i used the following label:
/**
 * Revision:
 *  $Revision$
 * 
 *
 *  $Id$
 */

      

Do you have any ideas how to add change history and comments to the source code when fixing the source code?

thank

+2


source to share


2 answers


You need to set the property svn:keywords

on the files where you want to replace keywords, for example:

svn propset svn:keywords "Date Revision Author Id" *.c

      



(see here)

+3


source


Subversion does not offer log history as an expandable tag.



You get id, date, revision, etc., but you need to set the "svn properties" - see "svn propset" in the man or help pages. Good interfaces to SVN (like Emacs mode) let you follow them directly, avoiding the command line.

+2


source







All Articles