Jānis Elmeris
Jānis Elmeris

Reputation: 2045

Is there a way to remove all sticky options in CVS?

I have accidentally commited a file to CVS as binary (sticky option -kb), and now I would like to remove it. Is it possible?

I've found a way to change the option to something else with cvs admin -kv , but is there a way to remove it completely?

I've also tried to remove the file and then re-add again (without specifying any sticky options), but also the new revision of the file has the same old -kb option.

Thanks!

Upvotes: 5

Views: 1762

Answers (3)

donfiguerres
donfiguerres

Reputation: 103

From https://lists.nongnu.org/archive/html/info-cvs/2000-10/msg00620.html I tried this already and it works.

For example you have a file named "abc".

cvs update -A abc
cvs admin -kkv abc
cvs update -A abc
cvs status abc

Note: Make sure to do the cvs update after the cvs admin because your local file will not be automatically updated after the cvs admin.

Upvotes: 0

Jens
Jens

Reputation: 72732

You can remove the binary flag with repo surgery as follows:

  1. Edit the file,v stored in the repo and delete the line(s) with expand @b@;.
  2. If you have checked out versions of file, edit CVS/Entries and remove the -kb for file at the end of /file/1.1/Mon Sep 9 09:30:10 2013/-kb/ so the line ends with //.

That did the trick here.

Upvotes: 4

Paul Sweatte
Paul Sweatte

Reputation: 24627

No:

  • There is no command for this

  • It was not designed for this

Upvotes: -1

Related Questions