aspose file tools*
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
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: 18991
    
    8

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

Joined: Jun 25, 2001
Posts: 16305
    
  21

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