facebook

CVS add commit comments automatically to source files?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #280817 Reply

    harryajh
    Member

    Using ME 6.0.1 GA in Eclipse 3.3.1.1 on win 2000

    Firstly applogies is this is in the wrong group, not sure which is the right one?

    I worked in a company a while back that when you commited changes to CVS (using the Eclipse’s CVS client) the comments would be added to the source files automatically as a type of change history

    I can’t for the life of me find out how to do this now – can anyone help?

    I’ve included an example below which shows the type of thing I’m trying to do –

    /**
    * @author fbloggs
    * @version $Revision: 1.2 $ as of $Date: 2007/09/12 10:53:33 $
    * <p>
    * CVS Entry : $Header: /CVS/testpository/PMI II/abc/src/com/dmp/sys/test.java,v 1.2
    2007/09/12 10:53:33 fbloggs Exp $
    * <p>
    * Last edited by : $Author: fbloggs $
    */
    /*
    * Version Log :
    *
    * $Log: ApplicationModule.java,v $
    * Revision 1.2 2007/09/12 10:53:33 fbloggs
    * made loads of changes
    *
    * Revision 1.1 2007/08/31 16:16:54 fbloggs
    * created
    *
    */

    Any ideas?

    thanks

    harry

    #280819 Reply

    ernestz
    Member

    It is the $Log tag shown in your snippet.

    Just insert the string “$Log$” without the quotes in your comment section. You may also have to change the cvs keyword substitution mode. I think Eclipse defaults to “-kkv” which will only render the keyword, not the value. You may have to change the keyword substitution mode outside of Eclipse (or at least I haven’t figured out how to do it within Eclipse).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: CVS add commit comments automatically to source files?

You must be logged in to post in the forum log in