Play Cvsnt+tortoisecvs version control system (diagram) (top)

Source: Internet
Author: User
Tags version control system
Background This is the last fall use work as for leisure time to write an article about CVS, because it is the word format of the article, published inconvenient, today put up, I hope for all want to understand and learn CVS friend help.
This article takes the configuration process of Cvsnt+tortoisecvs to build the CVS platform as the main line, and introduces the process of the CVS platform setup in detail. With application as the center, combining Java programmers commonly used two kinds of development tools Eclipse-3.2, IntelliJ idea 5.12 describes how to use CVS in these Ides. The article downplayed the CVS command, because I think that commands are easy to view at the command line, but seeing the command doesn't mean you'll use these tools. So don't expect this article to explain how many CVS commands you have.
The article is divided into two parts: the first part mainly tells about the construction of CVS platform; the second part mainly explains how to use the construction of CVS to do development, the article emphasizes on the development of Java Program program, in fact, other languages can also use CVS, are the same. Directory
Directory 1 part
First, the environment: 1
II. Overview 2
Third, Software Installation 2
Four, cvsnt server-side configuration 2
(i), warehouse configuration 2
(ii), server configuration 6
(iii), compatibility configuration 7
(iv), plug-in configuration 8 (v), Advanced Configuration 8
V. CVS Client Configuration 9
(i), TORTOISECVS client Configuration 9
(ii) Use CVSNT or TORTOISECVS command line commands as client software to operate CVS. Part 14-Part Two
Vi. CVS Application Practice 15
(i), cvsnt+eclipse CVS configuration 15
(ii), Cvsnt+intellij idea 5.12 CVS configuration 29
Summary 43
Statement 441, Environment:
Windows xp/2003
CVSNT 2.5.03 (Scorpio) Build 2382
Tortoisecvs 1.8.26
Eclipse 3.2
IntelliJ Idea 5.12   II   Overview           CVS is Concurrent Version System (parallel Version system), for version management. If you have been involved in a number of collaborative development projects, we must have such a painful experience: because many people at the same time to modify the same file, their painstaking modification of the program was completely deleted by others. In addition, if your software/program has released three versions, and the user needs you to modify the second version of the item, you may be crying because you have only kept the latest version. There is a few changes you have made to the program, but the changes are very little, you just want to send a distance to colleagues in a two version of the difference between the file, so you can avoid the mailbox is not big enough, the speed is too slow and so on. To solve similar problems, such as generating patch files, historical revisions, and so on, a bunch of hackers developed CVS based on the mature SCCS and RCS of the original Unix system. (Sccs:source Code Control System,rcs:revision control System).         we know that CVS works using the client/server (CLIENT/SERVER) model, which is also a trend for good versioning systems. 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 from [Url]www.cvsnt.org[/url] for free.          cvs's basic work mentality is to build a warehouse on a single server that can store the source programs for many different projects. These source programs are managed uniformly by the warehouse administrator. In this way, it's as if only one person is modifying the file. avoided the conflict. Before each user uses the warehouse, the project files in the warehouse are downloaded to the local area first. Any modifications made by the user are done locally, and then submitted with a CVS command, which is uniformly modified by the CVS warehouse administrator. This can be done to track file changes, conflict control, and so on.   III   Software installation           1,   Purpose: Using CVSNT as a CVS server, using Tortoisecvs as a CVS client. Eclipse3.2 and IntelliJ idea 5.12 These development tools are also from standard CVS clients, which are generic.
2, the installation of software:
The software installation is very simple, first installs the CVSNT, then installs the Tortoisecvs. The default installation can be.
Here, the installation software path is:
CVSNT installed to D:\Program files\cvsnt
Tortoisecvs installed to D:\Program Files\tortoisecvs
After the installation is complete, restart the computer. Four, cvsnt server-side configuration
(i), warehouse configuration
1, open cvsnt Control Panel, run the Start Menu cvsnt menu folder in the "Cvsnt controls panel" can be. The following figure

2, as shown above, to ensure that the cvsnt two services to start normal, click the tab "Repository Configuration" (Warehouse configuration). The CVS repository is each version of the code and all related records are stored on the server side. Sometimes it's called the primary copy (master copy), and for what we'll see in later chapters. Before creating a CVS repository, we first need to create a new folder to act as a repository. The following figure creates the warehouse folder I:\mycvsdata.
3, this folder is best not to put together with the program, so as to prevent the system crashes when the data destroyed. Then, click "Start"-> "->" "CVS for NT"-> "Configure Server", the following dialog box appears when you select the "Repositories" tab.
4, as shown above, because it is a CVS server installed on the local computer, so fill in the 127.0.0.1, you can also fill in as localhost; Click Add, add a warehouse, and then click the Add button to browse the new warehouse folder that you just created I:\ Mycvsdata the following figure:
5, as above, click the "OK" button:
6, as above, click the "OK" button, will be prompted:
7, as above, click "Yes", the initialization folder as a warehouse folder, initialization, in the folder will generate a Cvsroot folder, which has a lot of files and subfolders, are the warehouse configuration information. At this point the Warehouse Configuration tab is shown below:
(ii), server configuration
1, click the Server Settings tab,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.