Practical source code control tool WinCVS CVSNT (1)
Effective tool series
Liu Xiaowei: Liuxiaowei2000@sina.com
One. brief introduction
This article introduces the source code control combination of WinCVS and CVSNT under the Windows platform, which is completely my personal experience. I hope that you will be criticized and correct.
Operating environment:
Windows 2000 Server SP3,
WinCVS 1.3.10.1 Beta10 (Build 1)
CVS for NT 1.11.1.3 (Build 64)
two. Install WinCVS and CVSNT
Install CVS for NT
You can download the latest CVS FOT NT (Windows Install) from http://www.cvsnt.org/
User Guide: http://www.cvsnt.org/cvs.html
After the download is installed, you can restart your computer if you do not install the SSH service.
2. Install WinCVS
You can download the latest WinCVS from http://sourceforge.net/projects/cvsgu/
Download is installed.
three. Project source code initialization
Establishing repository
Repository is a directory where the project source code is stored, and a repository can store the source code of multiple items.
Select: Start -> cvsNT-> Service Control Panel as shown below:
Figure 1. Click the "START" button to start the corresponding service, just start the CVS Service only
Repository page setting:
Select Repository Pre ..., click the "..." button on the right, select the repository directory, such as: D: / cvsroot, click the "Add", click OK in the pop-up dialog, if you pop up another conversation Box, click "Yes". Uncheck repository pre .... After completing, as shown below:
figure 2
The setting of the Advanced page is as follows:
image 3
After the configuration is complete, click OK.
2. Establish a new project
Select: Start -> WinCvs-> WinCVS Start WinCVS
Select: admin-> preference, press the picture configuration, deselect the "Checkout Read-Only" item of the global page, others unchange: Click OK.
Figure 4
Select: view-> browse location-> change ..., select the directory where the project source code is stored in the pop-up dialog box (here F: / Projects / Java / JBossDemo), click OK.
Select: admin-> LGOIN, enter this machine administrator's password (username and password are the username and password of the computer installed CVSNT, where this is the unit user).
Click the Module page on the left, right-click the project source code root root directory, select: Import Module ... as shown below:
Figure 5. Double-click the item you want to modify to exclude non-code file types.
For example: .class files should not be imported into the project, so double-click the item shown above. In the pop-up dialog box selection, other options, please refer to help: Figure 6.
After the settings, click Continue to continue, refer to the following image:
Figure 7.
Click OK to start importing the project source code. Successful will be displayed in the following message box:
***** CVS EXITED NORMALLY with CODE 0 *****
Error is displayed:
***** CVS EXITED NORMALLY with CODE 1 *****
At this point, the initialization of the project source code is basically completed.
four. Developers conduct parallel development
1. Get the entire project source code
Select: create-> checkout module as shown below:
Figure 8.
Enter the directory you want to save under "Local Folder to Checkout To", then click the "..." button, pop-up dialog box refers to the following settings:
Figure 9.
Click Refresh to list Modules, select the module you want to import (here JBossDemo) Click OK.
Click OK to start the CHECKOUT the entire project source code.
2. Edit a single file
3. Submit changes
4. Version comparison
.
(to be continued)