How do I checkout a single file?
Asked Answered
E

2

9

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  ??
Episternum answered 31/1, 2012 at 9:16 Comment(0)
M
12

Try cvs co project/lib/source/file1

Madgemadhouse answered 31/1, 2012 at 9:21 Comment(2)
Thanks. but now when I try to commit everything, I get "Up-to-date check failed for lib/source/file1" error. What should I do next?Episternum
Someone else has committed changes to the file since you checked it out. You need to do a cvs update.Heteronomy
E
5

I had to use "cvs update filename" to pull single file from cvs module. Run this command in the module local workspace.

Epiclesis answered 14/11, 2013 at 12:12 Comment(1)
Please elaborate on the answer. Do you have a link to this information?Yockey

© 2022 - 2024 — McMap. All rights reserved.