Full configuration of SVN services in Windows

Source: Internet
Author: User
Tags tortoisesvn

1. Preparatory work:

Download Subversion:setup-subversion-1.8.13.msi

Reference Address: http://sourceforge.net/projects/win32svn/files/1.8.13/

Download Tortoisesvn:tortoisesvn-1.8.11.26392-x64-svn-1.8.13.msi

Reference Address: http://tortoisesvn.net/downloads.html

* Install directly after download, do not need special configuration

* Subversion version must be above or equal to TORTOISESVN version

2. Create an SVN Repository:

Method One: Use the command line to create after entering the directory

Svnadmin Create Myproject/repository

* MyProject needs to be a directory that already exists. If not, the Create command is as follows:

Svnadmin Create repository

Method Two: Use TortoiseSVN to create:

Right-click the folder-tortoisesvn-create repository here

* The folder must be empty, otherwise the creation will fail

3. Modify Repository Permissions:

A. Configure repository/conf/svnserve.conf:

#anon-access = read#auth-access = write#password-db = Passwd#authz-db = Authz
Remove the # number before the four lines and change anoa-access = read to Anon-access = None (anonymous access is forbidden)

B. Configuring REPOSITORY/CONF/PASSWD

The form is as follows: [users]username = password

C. Configuring Repository/conf/authz

[Groups] User group name = Personnel 1, Personnel 2

[/]
@= RW

* [/] represents the root directory of the project, the following is read and write rules, you can add different read and write rules for different directories

* R stands for readable, RW stands for readable write

4. Start the SVN service:

Writing a bat file makes it easier to start:

sc stop Svnserve  SC delete svnserve  sc create svnserve binpathstart=start Svnserve Pause

* Execution display As above indicates successful service opening

5. Connect the local repository and check out:

New Folder-Right click-SVN Checkout-Enter url:svn://localhost/repository-Confirm

* Appears completed | At Revision:0 is the success

6. Upload the code:

A. After adding a new file to the local file, upload it to repository:

Folder inside space-right click-SVN Commit-The newly added file will be displayed-tick and confirm

B. After modifying the local file, upload to repository:

Right-click on the file-SVN Commit-the modified file will be displayed-tick and confirm

7. Problem Solving:

7.1 Service does not respond to start or control requests in a timely manner: 1053

A. Verify that the Startup bat file does not have a write error and that there is a problem with the file path.

B. Confirm that subversion is downloaded and installed correctly, and that installing Slik subversion will not start the service successfully.

Error 7.2 Checkout: Expected file system format between "1" to "3"; Discovery format "6"

A. Confirm that the Subversion version is equal to or higher than the TORTOISESVN version.

B. Restart the SVN service and try again.

7.3 SVN commit occurs: Authentication failed

A. Typically, there is a problem with the configuration file modification in repository/conf: Make sure that the capital of each row of modified lines is not added to the space.

B. The configuration of the directory in Authz must be written correctly and, if unsure, keep only this [/].

7.4 Project file not found in repository

Normal. SVN is based on a relational database (BERKLEYDB) or a series of binaries (FS_FS). On the one hand, this solves many problems (for example, parallel read and write shared files) and adds many new features (such as the transaction characteristics at run time). On the other hand, however, The data store becomes opaque.
Based on the above, you cannot find the original file you submitted on the service, because SVN commits each commit atom, so you can find some fragmented files on the server.

Full configuration of SVN services in Windows

Related Article

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.