*
The moose likes IDEs, Version Control and other tools and the fly likes CVS Revision and Date Tag do not work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "CVS Revision and Date Tag do not work" Watch "CVS Revision and Date Tag do not work" New topic
Author

CVS Revision and Date Tag do not work

Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Does anyone know why the Revision and Date Tag in CVS do not work for me.

I simply use $Revision: $ $Date: $ in my source code and commit it to CVS. Some files update to the current revision and date but some don't

Any hints?


SCJP, SCJD, SCWCD, SCBCD
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Does it happen to random files, or is there some pattern?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

I think your problem is that the correct syntax is:

$Revision$ $Date$

Without the colons and spaces. CVS is rather picky about such things. Once it has done the initial substitution, as long as you don't mess with things, it should be OK.


Customer surveys are for companies who didn't pay proper attention to begin with.
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
The problem is kind of subtle. It depends on the ASCII/Binary property your source file has.

In my case the version in CVS was stored with an ASCII/Binary property -kk, however my local version had an ASCII/Binary property of -kkv. That tiny mismatch was the reason why it not worked .

After changing the property to -kkv and commiting again to CVS I got my tags set .
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
I use Eclipse 3.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CVS Revision and Date Tag do not work
 
Similar Threads
CVS revision and tag
CVS Comments added to Code
Add date and revision info to the javadoc when checked in
subversive
Eclipse support for cvs -f checkout