Search code examples
stickycvsremoveall

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!


Solution

  • 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.