NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How to "CVS Add"


Joined: 22 Mar 2004
Posts: 4
Reply with quote
OK. I realize that this is not a CVS User forum and that there is a wealth of info on the internet for how to use CVS, but I'm still stuck and any hints would be appreciated.

Here's my problem...

I set up a project in PHPEd and enable CVS

method: pserver
host: 10.17.110.xxx
repository: /home/cvsrep
module: xionset8
and valid username and password credentials

I can import, checkout, un/edit, commit no problems. The problem I have is when I try to add new files or directories to the existing repository. I just can't get it done. And my workaround has been to create a new module, and import the entire directory structure for my project. Ugh!

I have the CVS Add feature in PHPEd set to the default

-z3 @Repository@ add "@Name@"

Every time I execute CVS Add I get the following error message...

Code:

cvs server:  cannot add file on non-branch tag HEAD


I realize that I a CVS Commit must succeed a CVS Add, but I can't seem to get there from here.

What is the right way to add a new sub-directory of files to an existing repository? Or a single file or files?

Thanks much in advance.
Chris.[/code]
View user's profileFind all posts by fastnsilverSend private messageMSN Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Okay, I realize that I am not a CVS guy you should address CVS issues to Smile

To fix the problem, the easiest way is to add new "update with remove sticky" command
Take settings that what you have for the default "update", copy them to new command and add -A option to have -z3 @Repository@ update -A etc etc etc.
then run the command whenever you need either the main branch from the repository and when you need to add anything new in particular.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 28 Nov 2005
Posts: 144
Reply with quote
I've the same problem of fastnsilvers; using the trick od ddmitrie I've the following error:
cvs.exe update: use `cvs.exe add' to create an entry for index_phped.php
View user's profileFind all posts by blackSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Why don't you try TortoiseCVS?
PhpED v4 supports it Smile
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 28 Nov 2005
Posts: 144
Reply with quote
yes I'm using tortoise too Smile

BTW I've solved: before the add command you've to execute a checkout Smile
View user's profileFind all posts by blackSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
I read somewhere that you have to delete sources after they are added to repository then do checkout too... Looks odd to me... That's CVS.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
How to "CVS Add"
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic