Changes

Jump to navigation Jump to search
647 bytes added ,  15:37, 3 May 2014
Line 86: Line 86:  
To add a file to source control:
 
To add a file to source control:
 
  cvs add <file>
 
  cvs add <file>
 +
 +
====Revert changes to files====
 +
 +
*To see history of changes on a file do
 +
cvs log oldfile
 +
 +
* To see exactly what has changed between two different revisions of a file:
 +
cvs diff -r < first version > -r < second version >  oldfile
 +
eg
 +
cvs diff -r 1.1 -r 1.2  oldfile
 +
 +
* To revert to older version of a file, do:
 +
cvs update -j 1.7 -j 1.5 oldfile
 +
and the you have to commit modification to cvs
 +
cvs commit -m 'oldfile modification reverted from 1.X to 1.Y'
 +
 +
*If you want to go back to the most up to date version just do the following:
 +
cvs update -A oldfile
 +
The -A tag tells update to get rid of the sticky tag and do a full update of the file.
    
====Prepare a working copy====
 
====Prepare a working copy====

Navigation menu