3

I have a file in cvs that has Sticky Options set to -kk. This replaces all cvs keywords with just the keyword name to facilitate diffs. For example, $Author: Alex B$ becomes $Author$.

How do I disable the -kk behavior and get back to "normal" cvs where keywords are substituted in? I've tried rm'ing the file and updating, I've tried cvs update -A and neither changes the flag.

Alex B
  • 24,678
  • 14
  • 64
  • 87

3 Answers3

4
cvs update -kkv <filename>

will reset the sticky options to keyword and value

Edit: Corrected checkout to update, thanks to Alex B for the correction.

Community
  • 1
  • 1
Ken Gentle
  • 13,277
  • 2
  • 41
  • 49
  • Hi Ken, checkout works on modules, not files - but your answer helped me solve my problem. If you edit your answer (checkout -> update), I'll accept it and delete my answer. – Alex B Nov 20 '08 at 20:21
  • 1
    Also you need to do a `cvs commit -f -m ` – Michael S. Oct 06 '12 at 10:44
2

Running a cvs status on the file still results in "sticky options" being set, for example:

Sticky options: -kk

To remove these completely, edit the CVS/Entries file and remove the '-kk' from the relevent entry.

Iain
  • 21
  • 1
2

You should use

cvs admin -kkv <filename>

to change the mode permanently. Using

cvs update -kkv <filename>

will only change it on your local machine

JochenJung
  • 7,183
  • 12
  • 64
  • 113