CVS and Subversion are two of the most popular source code control utilities, thousands of open source projects are using these two software to host their source code. Therefore, it is always worth remembering some useful commands such as checking out and updating source modules.
For CVS:
To check out: cvs -d<CVS Root> login followed by cvs -d<CVS Root> -P <Module Name>
Example, check out source code of Mozilla
- cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login
- Enter password when prompted
- cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -P mozilla
To update latest code: cvs update
For SVN:
To check out: svn co <SVN Path>
Example, check out source code of Apache Tomcat Server
svn co http://svn.apache.org/repos/asf/tomcat/trunk
To update latest code: svn update
When in need, it will come in handy.