1. What is CVS
2. CVS download
System environment: Windows XP and Service Pack 2
installation files: CVS Server installation files-cvsnt-2.5.03.2382.msi
Wincvs installation Files-wincvs_setup.exe
You can get these two files in the link below:
CVS Server:http://www.cvsnt.org/wiki/download
Wincvs:http://prdownloads.sourceforge.net/cvsgui/wincvs2_0_2-4.zip?download
3. CVS Installation
We know that CVS is working with the client/server (CLIENT/SERVER) model, which is also a trend in the development of a good version control system. So let's start with a CVS server (of course this computer can also be used as a client). This section is about how to use cvsnt to erect a CVS server in a Windows operating system environment. CVSNT, as the name suggests, is definitely used on Windows, and this software can download the latest version free of charge from www.CVSNT.org.
Download it first, and then double-click to start the installation:
will appear above the dialog box, which is irrelevant, so all the way next press down until the following dialog box appears
Here you need to select Full installation, then click Next, and the following dialog will appear
Note that you need to select all two check boxes. Then you can rest easy and install it all the way.
The installation is complete, this section is over, how about. It's quite simple.
4. CVS Basic Concepts
5. Create CVS Repository
Before creating a CVS repository, we first need to create a new folder to act as a repository. This folder is best not to be put together with the program to avoid damaging the data in the event of a system crash. Then, click "Start"-> "->" "CVS for NT"-> "Configure Server", the following dialog box appears when you select the "Repositories" tab.
Click on the "Add" button below, will appear to let you select a folder dialog box, select the folder we just created, and make sure, you will find that the dialog box shown in the center of the list box has changed as shown below
Shows the path to the folder we created above. Such a CVS repository is created.
6. Configure CVS Account
Before creating a CVS repository, we first need to create a new folder to act as a repository. This folder is best not to be put together with the program to avoid damaging the data in the event of a system crash. Then, click "Start"-> "->" "CVS for NT"-> "Configure Server", the following dialog box appears when you select the "Repositories" tab.
Click on the "Add" button below, will appear to let you select a folder dialog box, select the folder we just created, and make sure, you will find that the dialog box shown in the center of the list box has changed as shown below
Shows the path to the folder we created above. Such a CVS repository is created.
7. WINCVS Installation and Configuration
We've covered all the steps on the server side, and now we have a CVS server, so we're going to continue to create one or more clients to implement the client/server (Client/server) model.
The client uses the software is Wincvs may download in www.WINCVS.org free, it is the graphical interface, is more intuitive, moreover the function is formidable. Wincvs installation is nothing special, like any other software, double-click it to install.
After the installation is complete, the most important thing is to configure the client to have the CVS client locate the warehouse on the server that needs to be accessed based on the configuration information. In the Wincvs Window menu bar, select "Admin"-> "Preferences" to appear as follows dialog box:
Enter the configuration string in the "cvsroot" column in the following format:
:p server:username@hostname (or IP address): CVS Warehouse path
This format is absolutely infallible, otherwise the CVS command will not execute properly.
Let me explain the meaning of the string above:
1, "PServer" is the most commonly used CVS remote access mode;
2, "username" refers to the client on the server user name, that is, we in the above "configuration CVS account" in the knot mentioned;
3, "hostname" is the host name of the CVS server, can also be its IP address;
4. The CVS warehouse path is the directory where a CVS repository is located to distinguish which warehouse you are accessing (because there may be several different warehouses on a CVS server).
For example::p server:njx@frontfree-njx:/master
Configuration finished click OK. So far we have implemented the CVS "client/server" (client/server) pattern. In order to determine the above steps are right, we have to test. The best test method is to have the CVS client log on to the server. Select "Admin"-> "Login" in the menu bar, and the following dialog box appears:
Prompts you to enter the password. The password is the password for the account created above. When you are done, click OK, and then note the command Results Output window below the Wincvs window, if the following message appears:
CVS exited normally with code 0 * * *
Indicates that the login succeeded, if not, that there was an error in doing the steps above, please check carefully. If the tests are successful, we can start using the powerful features of CVS.
Attention:
1, the above steps are also applicable to the CVS server is already the machine, which is mentioned before the server and do the client.
2, CVS login only need a successful login on it, do not have to log in every time.
8. Simple operation of Wincvs
Are you excited about having a CVS server unconsciously? Here we are going to start using CVS, this article only describes the simple operation of CVS, if you want to learn more about the release of the network Documentation Center of other articles.
Perhaps you will ask in the excitement, the first step should do.
First, we're going to create a folder on the client, for working copies (the concept of working copies is described in other related documents in the Release Document Center), the working copy corresponds to the primary copy mentioned above, the master copy is only one copy, in the CVS repository, and the working copy can be many, placed on different clients respectively. After the folder is created, we add its path to the input box above the Wincvs window, and all of our working copies are stored in this folder from now on, and our changes to the files are also made to the files in this folder.
So let's start with a new project, first of all, we're going to do the "checkout" process of copying the directories and files from the master copy to the client directory you specify.
Right-click the box to the left of the Wincvs window, select Checkout module in the pop-up menu, and the following dialog box appears:
Enter only one "." In the first input box to indicate that all copies of the warehouse are to be copied as work copies. Enter the path to your working copy in the second input box and click OK. (If there is a directory change in the future master copy, the client will have to do "checkout" process to see)
After this step is done, we'll simulate a new project and submit it to the CVS repository. First, create a new folder in your working directory. If you look at Wincvs, you'll see that the icon in front of the folder you just created is red, which prompts you to select it and then click the button with the plus sign in the Wincvs button bar, which creates a directory on the CVS server. Similarly, if you are creating a new file, you will add it as well. Note that the directories and files should be added separately, and don't assume that the directories are added and the files inside will be added. You will encounter a dialog box during the Add process:
This is CVS reminding you to enter the record information, which will be recorded in the corresponding log for future viewing. Be sure to fill it out carefully, because if you forget what you did to the document the other day, this is the best information. such as: Create a new project. Then click OK to do it.
The directory is added to this step, and the file to add another step, is the file "commit" process, which also applies to the file is modified, submitted to the warehouse. Just select the file you want to submit, and then right-click, select "Commit Selection" in the pop-up menu and enter the same record information, click OK.
At this time, another client machine want to see the project file, you want to get the latest version of the directory on the right click to select "Update Selection", then you will find that the file into the latest version, the other people's changes are at a glance.
Above I introduced to you in the Windows environment to set up CVS method and a superficial introduction of