Usage notes of Version Control Software subversion (WIN)

Source: Internet
Author: User
Tags svn update tortoisesvn

1. download and install the software
1. Servers
1) download the Subversion server software. url:
Http://subversion.tigris.org/
. On the download page, find the Windows system NT, 2000, XP and 2003, and click the relevant connection to enter the download, the latest version is the svn-1.3.2-setup.exe.
2) After the download, run the svn-1.3.2-setup.exe until the installation is successful.
2. Client
1) download the Subversion Windows client program tortoisesvn and the Chinese Language Pack. url:
Http://tortoisesvn.tigris.org/
. The latest version is TortoiseSVN-1.3.5.6804-svn-1.3.2.msi and LanguagePack-1.3.5.6804-win32-zh_CN.exe.
2) download, first run the TortoiseSVN-1.3.5.6804-svn-1.3.2.msi installation program, after the completion of the prompt to restart the computer, select "no", run the Chinese Language Pack program is complete and then restart the computer.
After the installation is complete, the corresponding operations will be added in the right-click menu, such:

Ii. Build a version Library
To run the Subversion server, you must first create a version Library (repository), which can be seen as a database for storing data on the server. There are two ways to create a version Library:
1. Command Line Method: In command line mode, run svnadmin create F: \ repository to create a version library repository under disk F.
2. Interface Operation Method: In the F: \ repository directory, right-click and select "Create File library here" under tortoisesvn. Select the default "local file system (fsfs)" as the file library type )", in this way, a version library is created under this directory.

3. Set users and permissions
1. Remove the # And space before # password-DB = passwd in the F: \ repository \ conf \ svnserve. conf file. Otherwise, an error is reported ).
The content of the svnserve. conf file is as follows:
[General]
# Anon-access = read
# Auth-access = write
# Password-DB = passwd
# Authz-DB = authz
# Realm = my first Repository
Parameters are defined as follows:
Anon-Access: defines the access permissions of unauthorized users. There are three methods: None, read, write, set to none to restrict access, read to read-only, write to have read and write permissions, the default value is read.
Auth-Access: defines the authorized user's access permissions. There are three methods: None, read, write, set to none to restrict access, read to read-only, write to have read and write permissions, the default value is write.
Password-DB: defines the name of the file that saves the user name and password. passwd is used here, and the file is located in the same directory.
Authz-DB: defines the name of the file that saves the authorization information. authz is located in the same directory as the file.
Realm: defines the "authenticated namespace" for the client connection. The Subversion is displayed in the authentication prompt and serves as the key word cached by the credential.
2. Remove the # And space before # Harry = harryssecret and # Sally = sallyssecret in the F: \ repository \ conf \ passwd file.
The content of the passwd file is as follows:
[Users]
# Harry = harryssecret
# Sally = sallyssecret
Two users, Harry and Sally, are defined here. Their passwords are harryssecret and sallyssecret. Similarly, we can also define our usernames and passwords.
Iv. Running Server
In command line mode, run svnserve? D? R f: \ repository, the server can be started.

V. Import the initial file
1. Right-click the project root directory that we want to implement version control and choose import from tortoisesvn,

2. Enter the file library path, for example, SVN: // localhost/Repository,

3. After confirmation, you are prompted to enter the user name and password. after entering the user name and password defined in the passwd file (for example, the user name is Harry and the password is harryssecret ), the data is imported to the defined version library repository.
Vi. client operations
1. Retrieve the project from the version Library:
Right-click the menu and select "SVN fetch ",

Then fill in the path of the file library on the Subversion server in the "file library URL" column, for example, SVN: // localhost/Repository. After confirming, you can retrieve the files in the file library repository.

2. Update the project:
Right-click "SVN Update" and select "SVN Update". Then, the latest files in the file library can be retrieved to the local computer.

3. Submit the modification:
After confirming that the modified file is correct, submit it to the file library. After confirming, submit the modified file to the version library.


4. view the file library
Select the "file library Browser" menu to open the visible file library on the Subversion server and operate the files and directories in the file library.


Posted on
Han Lei
Reading (2640)
Comment (7)
Edit
Favorites
Category:
R & D tools
In the previous post, I introduced how to install the Subversion version Version Control Software. In addition, I posted a subversion permission Control Article From the perspective of work needs and learning attitude, I still want to experience the charm of subversion permission control.
If you have any questions about subversion installation, please refer to the author's post:
Http://www.blogjava.net/coldtear/archive/2006/08/04/61668.aspx
This post details how to install the subversion.
After reading the post ("Subversion permission details") and setting it according to the methods in the article, the author always prompts the following errors: "Wrong authorization failed". After modifying the settings file, the permission control can be realized. Here, we will write out the solution after the author encounters the problem, I hope to help my friends who have encountered the same problems.
If you follow
Http://www.blogjava.net/coldtear/archive/2006/09/05/67808.aspx
After this article is set, an error indicating no permission is returned. follow the steps below.
Modify the conf \ authz file as follows:
[Groups]
G_vip = morson
G_manager = Michael
G_beijing = Scofield
G_shanghai = Lincon
G_headquarters = Rory, Linda
G_docs = Linda
# Add a permission control description for the root directory.
[/]
@ G_manager = RW
* =
# The following sections modify the path
[/Arm]
@ G_manager = RW
* = R
[/ARM/diary/Headquarters]
@ G_manager = RW
@ G_headquarters = RW
@ G_vip = r
* =
[/ARM/diary/Beijing]
@ G_manager = RW
@ G_beijing = RW
@ G_vip = r
* =
[/ARM/diary/Shanghai]
@ G_manager = RW
@ G_shanghai = RW
@ G_vip = r
* =
[/ARM/Ref]
@ G_manager = RW
@ G_docs = RW
* = R
[Arm:/temp]
* = When RW is modified like this, no error of no permission will be reported during access. You can set your own permission control. Subversion supports Chinese directories very well. According to the methods in the article, it is very easy to control the permissions of Chinese directories,
Of course, do not forget to save the authz file as "UTF-8 without Bom ".
This article is from the chinaunix blog. If you want to view the original text, click: Http://blog.chinaunix.net/u1/56723/showart_466499.html

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.