How do I checkout a single file?

alwbtc picture alwbtc · Jan 31, 2012 · Viewed 17.9k times · Source

I would like to checkout file1 from CVS repository to the current directory.

File1's path is: /opt/application/CVS_REPOSITORY/project/lib/source/file1

How do I do it?

First I set:

setenv CVSROOT /opt/application/CVS_REPOSITORY

Then what should I do?

cvs co -r . /lib/source/file1 ??

Or

cvs co -r . project/lib/source/file1  ??

Answer

Dawood picture Dawood · Jan 31, 2012

Try cvs co project/lib/source/file1