Enable SVN Keyword Properties

Config

If you would like SVN to replace keywords and it’s not enabled by default then execute:

svn propset svn:keywords Id FILE_NAME

E.g.,

svn propset svn:keywords Id Test.java

In your source file you need to add: “$Id”.

E.g.

/**
* Test class.
* @author John Smith
* @version $Id$
*/
public class Test {

After you commit the file, it will look something like:

/**
* Test class.
* @author John Smith
* @version $Id: build.xml 10 2008-06-15 18:12:42Z john $
*/
public class Test {
No Comments

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>