Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fill @version tag with subversion in Eclipse

I would like to fill the comment tag @version with Subclipse or Subversion in Eclipse. CVS has done this automatically but Subversion isn't. This would be very helpful.

I tried to google "@version" but it seems impossible.

Example what CVS did:

<?php
 /* 
 * @author Spankmaster
 * @version $Id: file.php,v 1.47 2009-09-21 09:28:49 sp Exp $
 * @package mysoftware
 */

Example with SVN:

<?php
 /* 
 * @author Spankmaster
 * @version $Id: $ -> stays empty
 * @package mysoftware
 */

Please help.....

like image 883
spankmaster79 Avatar asked Feb 19 '10 10:02

spankmaster79


People also ask

How to create tag in SVN in Eclipse?

You can create a tag of the one specified revision or a tag, containing resources of different revisions. To start tag creating click on 'Team>Tag...' menu item of the resource pop-up menu, 'Tag...' menu item of the SVN main menu group or on the 'Tag...' button on the 'SVN Toolbar'. The 'Create Tag Dialog' will appear.

What is subversive eclipse?

Subversive User Guide Subversive is a totally new Eclipse plug-in, that provides you a probability to use supported SVN® clients easily directly from your workbench. Friendly user interface of Subversive makes it much more comfortable to operate repositories.


1 Answers

in svn it is $Revision$

/**
* Last changed: $LastChangedDate$
* @author $Author$
* @version $Revision$
*/

also you must add the keywords to the project (folders and files)

Property svn:keywords set to LastChangedDate Author Id Revision HeadURL

like image 79
Marco Avatar answered Nov 09 '22 01:11

Marco