Reputation: 2045
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
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
Reputation: 72732
You can remove the binary flag with repo surgery as follows:
file,v
stored in the repo and delete the line(s) with expand @b@;
.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
Reputation: 24627
No:
There is no command for this
It was not designed for this
Upvotes: -1