[cvsnt] Undo Commit?

Arthur Barrett arthur.barrett at march-hare.com
Tue Jun 12 22:44:58 BST 2007


Emil,Raj,

> cvs -H admin will give you all the details you need.


This does not require the blunt axe approach.  Admin should be avoided
at all costs.

Raj, if you need to restrict the order of commits then you need to
implement a "reserved" CM process.  Mark the files as requiring
exclusive locks (cvs update -k+x;cvs commit -f -m "") to avoid this
problem in future.

To "undo" a revision use the commit id with the update command, or if it
is a single file then use update and a revision number, eg:
cvs up -j 1.1 Test.ear
cvs commit -m "revert to version 1.1"

Then make your changes and commit.  So you end up with:
1.1 - original version
1.2 - incorrectly committed
1.3 - same as 1.1
1.4 - Raj's changes
1.5 - other changes



Regards,


Arthur


More information about the cvsnt mailing list