Let's take for example a single file committed in CVS with the following history.
test.cpp
rev 1.1
rev 1.2
rev 1.3
How do I revert to rev 1.2 discarding the changes in 1.3 and then continue to make modification from that point on?
cvs commit -m "Type your change message here" All commits are logged automatically and posted to the project's cvs mailing list. Then follow up with the "cvs commit filename" command. If you do not first add the file, CVS does not recognize it.
A removal must be committed before it affects the repository. If you notice that you accidentally removed a file you need (before you run cvs commit ), you can use cvs add to undo the removal and then use cvs update to retrieve the removed file. This process leaves no record in the repository.
The history database You can use the history file (see section The history file) to log various CVS actions. To retrieve the information from the history file, use the cvs history command (see section history--Show status of files and users).
cvs update -j 1.3 -j 1.2 test.cpp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With