cvs revert

A quick way to make the contents of a file in CVS match a given revision, without changing sticky tags etc. (useful for patching up branch code, in this case):

cvs update -p -r 1.13 db/reports/automated/sql/monthlyreport.sql > db/reports/automated/sql/monthlyreport.sql

The -p flag to update makes it print the file contents to standard out, instead of changing the file, so this does that but redirects to update the file contents.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*