How to convert data in sourcesafe to CVS data

Source: Internet
Author: User
Tags perl script
Author: Huang runlei

 

Microsoft's sourcesafe is easy to use and works well with the visual C ++ development environment. Therefore, many people often choose

Select sourcesafe. However, sourcesafe does not have many key features, such as the inability to create branches, the inability to create tags, and security.

. So after a period of use, I am familiar with the concept of version control, and may want to transfer it to other version control software. Many commercial editions

This control software (such as clearcase) provides conversion tools from sourcesafe to itself. Open Source CVS also has two such conversion tools.

One is vss2cvs. pl. This is a Perl script. I have tried it but it is not successful. The other is vssextractor.

Finally, I used vssextractor to convert my previous sourcesafe data to CVS. Now I want to write down the conversion process.

Hope to help you.

I. Required Software
1. Download vssextractor from http://sourceforge.net/projects/vssextractor/, requires two files

Cserver-0.7.1.tar.gz and VSSExtractor-0.7.1.zip

2, download CVS source code http://ftp.cvshome.org/cvs-1.11.1/cvs-1.11.1p1.tar.gz,VSSExtractor can only use this version

CVS.

3. If you need to compile vssextractor by yourself, you also need the source file of the xml-xerces-1.4.0, which is not packaged on the Apache website, I am

Obtained using CVS. Run the following command:

Set cvsroot =: pserver: anoncvs@cvs.apache.org:/home/cvspublic

CVS Login

(Password: anoncvs)

CVS co-r Xerces-C_1_4_0 XML-xerces

Ii. Compile and run cserver

For the convenience of narration, The cvs-1.11.1p1.tar.gzand cserver-0.7.1.tar.gz are both placed in ~ /Cserver directory.

1. Open cvs-1.11.1p1.tar.gzand cserver-0.7.1.tar.gz. In ~ Run the following command in the/cserver directory:

Tar-xzvf cvs-1.11.1p1.tar.gz

Tar-xzvf cserver-0.7.1.tar.gz

2. Install patches. In ~ /Cserver/cvs-1.11.1p1 directory, enter the following command:

Patch-P1 <../cserver/patch/cserver-0.7.1.patch

3. compile. In ~ /Cserver/cvs-1.11.1p1 directory, enter the following command:

./Configure

Make

4. Edit ~ Cserver. conf under the/cserver/cvs-1.11.1p1/src directory. It is mainly the cvsroot item, which is changed to the true CVS Repository

Path. We recommend that you create a new repository. Do not use the directory with important data. Convert the Directory into a new one and copy it to the production environment. Cserver. conf

Other items can be left unchanged.

4. Run cserver. In ~ /Cserver/cvs-1.11.1p1/src directory, enter the following command:

./Cserver

Iii. Compile and run vssextractor
Open vssextractor-0.7.1.zip and modify the vssextractor. ini file according to your configuration. The options to be modified are:

1. Location of the ssdir sourcesafe database.

2. Location of the vsspath ss.exe executable file, which is generally the Visual Studio installation directory \ common \ VSS \ Win32

3. Temporary tempdir directory

4. IP address or machine name of the Linux machine on which the server runs cserver.

5. sourcesafe project to be converted

After modifying these options, you can run vssextractor for conversion. However, there are two issues to note:

1. vssextractor uses the username used to log on to sourcesafe when the current user logs on to the system. Therefore, you must create

A user with the same name without a password must have the read permission on the project to be converted.

2. Because vssextractor is developed by a foreigner, and the format of the display date of a foreigner is different from that of a Chinese, the "Region" in the control panel is used before conversion.

Option to change "your region settings (location)" to "English (U.S )". Or modifySource code, Correct this error and re-compile

Translation.

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.