info-cvs
[Top][All Lists]
Advanced

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

Re: checkout


From: Y Hu
Subject: Re: checkout
Date: Thu, 31 Jul 2003 21:30:37 -0700 (PDT)

Thanks Mark.

The file dummy.c is really in the server depository
(it is not a real file name, just for example here). 

I know "cvs co module" works, it checks out the whole
directory. Now, the real question is how do you check
out a file for editing? I thought "cvs co dummy.c"
changes a read-only file dummy.c to a read-write file
in my local directory, so that I can edit the dummy.c
in my local directory. If I use "cvs update dummy.c",
it won't change the read-only attribute. What is the
GNU cvs command to check out a file for editing? 

Thank you.

yh
--- Mark Priest <address@hidden> wrote:
> When you use the checkout command you are requesting
> to check out a module
> from the repository and create a working directory. 
> Unless you actually
> have a module called dummy.c, which would be a poor
> name for a directory,
> then this command should have always failed.
> 
> If you are using update and status then you must
> already have a working
> directory in which case you probably don't want to
> use checkout since it
> might cause you to lose changes in your working
> directory.
> 
> If you want to use checkout you should be creating a
> new working directory.
> In general, the module name for a project is the
> same as the top-level
> directory for that project under the cvs repository
> root directory.  If you
> have access to the repository machine check to see
> what the top-level
> directory is that contains dummy.c and use that with
> the checkout command.
> 
> -Mark
> 
> ----- Original Message -----
> From: "Y Hu" <address@hidden>
> To: <address@hidden>
> Sent: Thursday, July 31, 2003 10:59 PM
> Subject: Re: checkout
> 
> 
> > Hi,
> >
> > I've been using GNU CVS for a while on and off. In
> my
> > last project, I used the the cvs command such as
> "cvs
> > co dummy.c" for editing the file.
> >
> > Now, in my new project, the "cvs co dummy.c" gave
> me
> > an error "cvs server: cannot find module `dummy.c'
> -
> > ignored, cvs [checkout aborted]: cannot expand
> > modules" despite that "cvs update dummy.c", "cvs
> > status dummy.c" all works. Can anyone help me what
> I
> > am missing here for cvs co command and how can I
> fix
> > it?
> >
> > Thank you.
> >
> > yh
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> >
> >
> > _______________________________________________
> > Info-cvs mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/info-cvs
> >
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com




reply via email to

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