[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs checkout question

From: Larry Jones
Subject: Re: cvs checkout question
Date: Sat, 27 Apr 2002 16:42:04 -0400 (EDT)

address@hidden writes:
> to know if it is even possible.  Can I just check out a single file, rather
> than the entire
> module?  When I specify a filename with cvs checkout, it says "cannot find
> module
> 'filename' - ignored".

Then you're not specifying the filename correctly -- you have to specify
both the module and the file name.  For example, if you have a module
called "foo" that contains the files "foo1" and "foo2".  If you do:

        cvs checkout foo

you'll get a directory "foo" and the files "foo/foo1" and "foo/foo2". 
If you just want to checkout the file "foo1", you do:

        cvs checkout foo/foo1

>  Sometimes I make changes to a file in my working
> copy and
> then decide they should be undone completely, or done in a different place
> (e.g.,
> on the trunk rather than on my branch).  In this case I want to overwrite
> my copy of
> that ONE file with a repository revision, but I don't want to check out the
> entire source tree.  Is there any way to do this?

        cvs update -C file

-Larry Jones

I take it there's no qualifying exam to be a Dad. -- Calvin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]