[Top][All Lists]

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

need help

From: Joseph Cheng
Subject: need help
Date: Wed, 14 Sep 2011 16:55:49 -0700

Dear Sir,

I got as follows:

When I Enter the cvs command: *cvs import RecipeCenter MyProg START*

*I got bb*

* *

*But I did aa already*

*So I need your help*


*Setting Up Your cvs Environment*

There are a couple of things you'll need to do before you can start using
cvs. First, you'll have to create a folder for the cvs library:

   1. Open Windows Explorer, and create a folder called *cvs* directly under
   the C drive.
   2. Copy the cvs.exe file to the cvs folder.

Next, you'll need to let your Windows system know where the cvs.exe file is
and also set an environment variable pointing to your newly created cvs
library folder. You'll need to edit the environment variables to do this:

   1. Right-click the *My Computer* icon either on the desktop or the Start
   panel, and select *Properties*.
   2. In the System Properties dialog box, select the *Advanced* tab.
   3. Under the advanced tab, click the *Environment Variables* button.

The Environment Variables dialog box, shown here, contains both user and
system environment variables.

The Windows XP Environment Variables dialog box

You must add the c:\cvs folder to the *Path* system variable and create a
new variable called CVSROOT pointing to the c:\cvs folder in your user

   1. Scroll through the system variables list box on the bottom of the
   dialog box, and select the *Path* variable.
   2. Click the *Edit* button to edit the Path variable.
   3. At the beginning of the Variable Value line, add *c:\cvs*, along with
   a semicolon, as shown (don't delete the items already included in the Path

Adding to the Path variable

   1. Click the *OK* button to save the new value.
   2. Under the user variables list box, click the *New* button.
   3. In the New User Variable dialog box, enter *CVSROOT* for the variable
   name and *c:\cvs* for the variable value. Click *OK* when you're done.

Creating the CVSROOT user variable

   1. Click the *OK* button to exit the Environment Variables dialog box,
   and then click the *OK* button to exit the System Properties dialog box.

*Initializing cvs*

The cvs package uses lots of control files to manage the project files.
Before you can use the cvs library to maintain your PHP code, you'll need to
create the required control files. You do this by using the *init* option of
the cvs command before starting your project libraries. Here's how you can
do that:

   1. Open a command prompt window by clicking *Start* > *All Programs* > *
   Accessories* > *Command prompt*.
   2. Type the command: *cvs init*.

This creates a new folder called CVSROOT under your c:\cvs folder and places
the necessary cvs control files there.

You're now ready to start using cvs. In Chapter 3, we'll walk through the
commands you'll need to know to maintain your PHP code.

*Chapter 3 *

*Using cvs*

With cvs installed, we're ready to start our project code library. The cvs
package is a command line tool that uses command line options to control how
it behaves. Here's a list of some of the options available with cvs.

*cvs Options*




Add new program files to a library


Check out files from the library to work on


Commit files that have changed to the library


View differences between your copy and the library


Produce a report on library changes


Import all files in a project to a new library module


Release your working copy from use


Remove a program file from the library


Update your copy of the project files from the library files

The first step is to import our Recipe Center application code into the cvs
library. The *import* option creates a new project in the cvs library and
imports existing files and folders into it. The import option takes three

cvs import *projectname vendortag initialtag*

The *projectname* parameter identifies the name of the project library to
create. The *vendortag* parameter identifies the name of the group working
on the code. And finally, the *initialtag* parameter is a placeholder
identifying the version information for the code. To start your code library
at version 1.1, we'll set this tag to the keyword *START*.

Let's import our existing Recipe Center code into a new cvs project library.
Follow these steps:

   1. Open a command prompt window.
   2. Change directories to the recipe folder in the WAMP5 server area using
   the command *cd \wamp\www\recipe* (or whatever you called your
   application folder).
   3. Enter the cvs command: *cvs import RecipeCenter MyProg START*.


C:\cvs commit RecipeCenter

Cvs[commit aborted:  c:\cvs /CVSROOT no such file or directory

How I can creat those file, also I didn’t get the Notepad appear

But I already did in window explorer

I have c:\cvs\CVSROOT in the window explorer




reply via email to

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