Supreme Supreme CVS using CVSNT and WinCVS This article is written to a small team or individual that is hoped to be better developed by CVS. It is believed that the wonderfulness of CVS has a probably a matter of understanding from Situ Yansan in an article written in front. It is not introduced here. Interested friends can see related articles: "Quality assurance technology in collaborative development - parallel version control, daily construction and delivery project" I just want to say a sentence: you Once you use CVS, you will find yourself. In fact, there is a lot of articles related to CVS online, and as far as I observe most English, most of them don't have any pictures, and most of them describe how to install and configure CVS servers under UNIX operating systems. This is obviously incomplete and some of the small teams that want to try to improve the improvement, especially the amateur team in the middle of the student. One of the main reasons is that the development environment of these teams is Microsoft's Windows2000 operating system. If a computer that provides a Unix operating system is provided as a CVS server, it is clearly unrealistic. This will give the curious people to produce the fear of CVS, I feel that it is so difficult and cumbersome. So, I think about this article - describing how to install and configure the CVS server under the Windows operating system, and join as much image - the main purpose is to let more people dare to try, and can apportion to CVS Powerful features of people. It is the following to the topic, the following is the main content of this article: 1. Installation of server-side CVSNT; 2, CVS code warehouse creation; 3. Configure CVS account; 4. Installation and configuration of client WinCVS; , Use WinCVS to make simple operations (including commit, checkout, etc.). In the first quarter, we know that CVS is working using the "Client / Server) mode, which is also the development trend of an excellent version control system. Then we must have a CVS server (of course this computer can also be used as the client). What is going to introduce this section how to use CVSNT to set up a CVS server in a Windows operating system environment. CvsNT as the name suggests, definitely on Windows, this software can download the latest version from www.cvsnt.org. First download it, then double-click to start installing: The above dialog box will appear, this is irrelevant, so all the way is pressed until the following dialog box appears here, then "Full Installation", then click Next, then The following dialog appears Note that this is to select both check boxes. Then you can have a low pillow, all the way to install it. The installation is complete, this section is over, how? Still very simple. The second section creates a CVS code warehouse (repository) here, I don't explain more of the concept and use of the CVS warehouse. You can refer to the introduction in other articles in the Flying Network Document Center. As long as you remember, the CVS warehouse is the memory of each version of the code and all relevant records in the server side. Sometimes it is called Master Copy, why, we will learn in the following chapters. Before creating a CVS warehouse, we first need to create a new folder to act as a repository. The folder is preferably not placed with the program, so that data is destroyed when the system crashes.
Then, click "CVS for NT" -> "CVS for NT" -> "Configure Server", then select the "Repositories" tab after the dialog box, the following dialog box appears to click the "Add" button below. The dialog box that allows you to select the folder, select the folder we just created, and then determine, it will find that the change in the central list box in the above-mentioned dialog box has shown the above displayed. The path of the folder. Such a CVS warehouse is created. Section III Configure the CVS Account We have installed CVSNT and create a CVS warehouse. At this time, we need to create an account to each client connected to the server to ensure that they can work normally. The easiest way is to right-click My Computer, select Manage, right-click "User" in Local User and Group, select "New User" to add. This is a user who created Windows and creating a CVS account. Section IV WINCVS Installation and Configuration We have already introduced all steps in the server, now we already have a CVS server, so in order to implement the client / server / server mode, we still have to create One or more clients. The software used by the client is WinCVS can be downloaded from www.wincvs.org, which is a graphical interface, more intuitive, and powerful. There is nothing special in WinCVS installation. Like other software, you can install it. After the installation is complete, the most important thing is to configure the client, and the purpose is to let the CVS client find the warehouse that needs to be accessed on the server according to the configuration information. Select "Admin" -> "preferences" in the WinCVS window menu bar, the following dialog box: Enter the configuration string in the "cvsroot" column, the format is as follows:: PServer: username @ hostname (or IP address): CVS Warehouse Path The format is absolutely unfair, otherwise the CVS command cannot be executed. Let me explain the meaning of the above string:
1. "PServer" is the most commonly used CVS remote access method; 2, "username" refers to the username on the server on the server, that is, we speak in the "Configure CVS Account" in the top; 3 "Hostname" is the host name of the CVS server, or it can be its IP address; 4, "CVS Warehouse Path" is a directory where you want to access it (because a CVS server is There may be multiple different warehouses). For example :: PSERVER: NJX @ frontfree-njx: / master configuration Click OK. We have now implemented the CVS's "Client / Server" mode. In order to determine the above steps, we have to test. The best inspection method is to let CVS clients log in to the server. Select "Admin" -> "login" in the menu bar, the following dialog box appears: prompt you for your password. The password is the password of the account created above. Click OK, then note the command results below the command below the WinCVS window, if the following information appears: ***** CVS EXITED NORMALLY with code 0 ***** Description Login is successful, if not, explain it is doing When the above steps, an error occurs, please check it carefully. If we successfully, we will start using the powerful features of CVS. Note: 1, the above steps are equally applicable to that machine that is already a CVS server, that is, the previously mentioned servers and the client. 2, CVS login can only be successfully logged in again, do not have to log in every time. Section 5 WinCVS's simple operation is unknowing, is you very exciting? Below we have to start using CVS, this article only introduces the simple operation of CVS, if you want to know in-depth understanding, please refer to other articles of the release network document center. Maybe you will ask if you are excited, what should you do? First, we have to create a folder on the client to store a copy (for the concept of work copy, please refer to the related introduction in other related documents of the Fly Document Center), the working copy is related to the main copy mentioned above There is only one copy of the master copy, placed in the CVS warehouse, and the working copy can have a lot of parts, which are placed in different clients. After creating a folder, we add its path to the input box above the WinCVS window. From now, all our work copies are stored in this folder, and our modifications made to the file are also targeted Files in the folder. Then let's start a new project, first start, we want to "checkout" procedure, this process is to copy the directory and files in the primary copy to the client directory you specified. Right-click on the box on the left in the WinCVS window, select "Checkout Module" in the pop-up menu and then the following dialog box appears: Enter one "in the first input box". "Indicates a full replication in the warehouse. Work copy. Enter the path you store your job copy in the second input box, then click "OK". (If there is a change in the directory in the future, the client also wants to "checkout" process to see) After completing this step, we can simulate the establishment of a new project and submit it to the CVS warehouse. . First, build a folder in your working directory. Look at WinCVS, you will see the icon in front of the folder you just created is red, this is prompting you to select it and click the plus button in the WinCVS button bar, which is created on the CVS server. the catalog. Similarly if you create a file is also added to add.