SVN and Its configuration in Windows

Source: Internet
Author: User
Tags subversion client svn client version control system tortoisesvn
SVN full name subversion, that is, version control system.
Like CVs, SVN is a cross-platform software that supports most common operating systems. As an open-source version control system, subversion manages data that changes over time. The data is stored in a central data repository (repository. This archive is similar to a common file server, but it will remember every file change. In this way, you can restore the file to the old version or view the file change history. Subversion is a common system that can be used to manage any types of files, including program source code.

Subversion: software that implements the service system.
Tortoisesvn: a svn client program that integrates Windows Shell programs with Windows Resource Manager and the file management system's Subversion client.
Svnservice.exe: An entry program specially developed for subversion as a Win32 service.
Ankhsvn: a svn plug-in for Visual Studio.

 

 

Configure the svn server in Windows
1. Download an object
Download the latest subversion. here I select svn-1.4.5-setup.exe.
Download the "Subversion Windows Service" Package
Download tortoisesvn shell integration Utility
2. Install the Subversion server
Because I download the setup.exe version, the system variables will be automatically set after the installation program is installed. If you download the zip version, you need to manually set the system variables.
You can install setup.exe directly. Install it to D:/program files/subversion.

First, create the svn repository (repository)

Svnadmin create F:/SVN/
After repository is created, several files and folders are generated under the directory. The dav directory is the directory provided for Apache and mod_dav_svn to store internal data; the DB directory is all version-controlled data files; the hooks directory stores the directory of the hook script file; locks is used to hold the directory of the data locked by the Subversion file library, and is used to track the client that accesses the file library; the format file is a text file with only one integer in it, indicating the version number configured in the current file library;

3. Configure the svn Server
(This location is where you create the repository. F:/SVN)
Open the/CONF/directory, open svnserve. conf, and find the following two sentences:

# [General]
# Password-DB = passwd
# Anon-access = none
# Auth-access = write

# At the beginning of each line, where the second line specifies the name of the authentication file, that is, passwd file. Anon-access = none is inaccessible to anonymous users and must have a user name and password. (Note: This is the problem. You must note that the format cannot be blank after the comment is removed)

Open the passwd file and set

# [Users]
# Harry = harryssecret
# Sally = sallyssecret

The format is "username = password". If you can insert a line: Admin = admin888, you can add a user with the username admin and password admin888 to the system.

4. Run the svn Server
Run SVN Service
Execute

Svnserve -- daemon -- root F:/SVN
Service start, -- daemon can be abbreviated to-D, -- root can be abbreviated to-R, you can create a batch processing file and put it in the Windows Startup Group to run the svn service at startup (note: this is a service temporarily opened. The window cannot be closed after the command is executed)

You can use the background service to set Automatic execution upon startup.
D:/program files/subversion/bin> SC create svnservice binpath = "D:/program files/
Subversion/bin/svnserve.exe -- service-r f:/SVN"

You can use net svnservice stop or start to start the service, or you can start it in sevices. MSC.

5. access through a client
Format: SVN: // server IP Address
Because SVN has three methods, there are three different access formats.

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.