[cvsnt] Re: How do I add a single file?
Siegfried Heintze
siegfried at heintze.com
Wed Jul 14 16:56:23 BST 2004
OK, I need some help! I'm trying to add a file and update a file. After
doing a check out and getting some errors I decided to start over again with
a release. Here is the log of my session in a cygwin/bash session:
$ cd ..
Administrator at fasolt /cygdrive/c/Program Files/Apache Group/Apache2/htdocs
$ cvs release CaseAssessment
You have [47] altered files in this repository.
Are you sure you want to release directory `CaseAssessment': yes
I now delete the CaseAssessment folder and start over:
Administrator at fasolt /cygdrive/c/Program Files/Apache Group/Apache2/htdocs
$ cvs co CaseAssessment
cvs server: Updating CaseAssessment
U CaseAssessment/Assertion.f
U CaseAssessment/CaseAssessment.def
...
U CaseAssessment/prob.f
U CaseAssessment/tausigma.f
U CaseAssessment/vark.f
Administrator at fasolt /cygdrive/c/Program Files/Apache Group/Apache2/htdocs
$ cd CaseAssessment
I now make a change to Assertion.f
Administrator at fasolt /cygdrive/c/Program Files/Apache
Group/Apache2/htdocs/CaseAssessment
$ cvs commit
cvs commit: Examining .
cvs server: Up-to-date check failed for `Assertion.f'
cvs [server aborted]: correct above errors first!
cvs commit: saving log message in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cvs14.tmp
It does not look like that worked. Now I try to add a file called
makefile.g77:
Administrator at fasolt /cygdrive/c/Program Files/Apache
Group/Apache2/htdocs/CaseAssessment
$ cvs add makefile.g77
cvs [server aborted]: Directory /c//CONVEXaseAssessment does not exist on
the server
This error message looks strange! My directory is CaseAssessment. Where is
the slash and the "C"?
I tried abandoning bash in favor of cmd.exe but that did not help.
Here is my CVS root:
$ echo $CVSROOT
:pserver:siegfried at 192.168.0.8/c//CONVEX
What am I doing wrong?
Thanks,
Siegfried
-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org] On Behalf Of
Glen Starrett
Sent: Thursday, July 01, 2004 4:48 PM
To: cvsnt at cvsnt.org
Subject: Re: [cvsnt] Re: How do I add a single file?
Siegfried Heintze wrote:
> Glen,
> Maybe I don't understand your term "sand box". I assumed sand box meant
> that I was working locally and specify a local path to the repository
> instead of specifying an IP address for the server.
> Did you mean something else? What would the exact command be if my
> repository is C:\CONVEX and my default directory is \Program Files\Apache
> Group\Apache2\cgi-bin and I had previously imported all of cgi-bin and
> severeral of cgi-bin's sibling directories and the file I want to add to
the
> project is abc.xyz?
>
> Thanks again!
> Siegfried
A "sandbox" is an area on your local system where you have done a
checkout. A sandbox directory will always have a (typically hidden) CVS
directory under it with some CVS control files in it. Sounds like you
were trying to add a single file from the same directory you imported
from. While there is an import option to automagically turn your
imported directory into a sandbox, it isn't on by default.
Try these steps:
1) Checkout your projects to a sandbox with:
cvs -d {your cvsroot here} co .
(the . will get everything in your repository. Probably overkill but
it'll work).
2) Copy the file you want to add into your new sandbox.
3) When in your sandbox directory, do a:
cvs add mynewfile
4) While still in your sandbox:
cvs commit -m "Adding mynewfile"
--
Glen Starrett
_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
More information about the cvsnt
mailing list