| 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: 16482
|
|
|
Does it happen to random files, or is there some pattern?
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14456
|
|
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
|
 |
 |
|
|
subject: CVS Revision and Date Tag do not work
|
|
|