• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CVS Revision and Date Tag do not work

 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Paul Clapham
Sheriff
Pie
Posts: 20729
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it happen to random files, or is there some pattern?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Eclipse 3.3
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic