Software downloads
Server and Client Installation
Build a version library (Repository)
Configuring Users and Permissions
Running a standalone server
Initialize Import
Basic client Operation 1, software downloads Download Subversion server program.
To the official web site download binary installation files, came to the binary package download section, find Windows NT, XP and 2003 parts, and then select "This directory" so that we can see a lot of downloaded content, currently can download Svn-1.4.0-setup.exe. Download Subversion's Windows client tortoisesvn.
TortoiseSVN is a set of tools to extend the Windows shell as a plug-in for Windows Explorer, and Windows will be able to identify the working directory of Subversion after installation.
The official website is TORTOISESVN, downloaded in the same way as the previous SVN server, on the download page we can choose to download the version, The currently highest stable version of the installation file is Tortoisesvn-1.4.0.7501-win32-svn-1.4.0.msi. 2, server and client installation
Server installation, directly run Svn-1.4.0-setup.exe, as prompted to install it, so we have a set of servers can run the environment.
Install TORTOISESVN, Also directly run Tortoisesvn-1.4.0.7501-win32-svn-1.4.0.msi follow the prompts to install, but after the final will be prompted to reboot, in fact, the restart is only to make SVN working copy in Windows Special style takes effect, with all the actual features, and here in order to immediately see To a good effect, or reboot the machine.
3, build version library (Repository)
Running a subversion server requires first establishing a version library (Repository), which can be viewed as a database of data stored on the server, and can be run directly after the Subversion server is installed, such as:
Svnadmin Create E:/svndemo/repository
A version library is created under the directory e:/svndemo/repository.
We can also use TORTOISESVN graphically to complete this step:
Under the directory E:/svndemo/repository "right key->tortoisesvn->create Repository here ...", then you can select the version library mode, which is used by default, and then create a series of directories and files.
4, configure users and Permissions
Come to e:/svndemo/repository/conf directory, modify svnserve.conf:
# [General]
# password-db = passwd
To
[General]
PASSWORD-DB = passwd then modifies the passwd file in the same directory, removing the following three lines of comment:
# [Users]
# Harry = Harryssecret
# sally = Sallyssecret
Finally becomes:
[Users]
Harry = Harryssecret
Sally = Sallyssecret
5, running a standalone server
Run in any directory:
Svnserve-d-R e:/svndemo/repository Our server program has been started. Be careful not to close the Command line window and close the window to stop the Svnserve.
6, initialize the import
Come to the root directory of the project we want to import, in this example E:/svndemo/initproject, there is a Readme.txt file in the directory:
Right Key->tortoisesvn->import ...
URL of repository Enter "svn://localhost/"
Ok
After the completion of the directory without any changes, if there is no error, the data has been all imported into the version of the library we just defined.
It should be noted that this step can be done entirely on another host with TortoiseSVN installed. For example, the IP of the host running Svnserve is 133.96.121.22, then the content of the URL part is "svn://133.96.121.22/".
7, basic client Operation
To remove a version library to a working copy:
Come to any empty directory, in this case is E:/SVNDEMO/WC1, run the right button->checkout, enter the svn://localhost/in the URL of repository, so we get a copy of the work.
Make changes in the working copy and submit:
Open Readme.txt, make changes, and then right-click->commit ... so we submit the changes to the repository and we can run them.
View the changes made:
Readme.txt on->tortoisesvn->show Log so that we can see all of our submissions to this file. Right-->compare with working copy on version 1, we can compare the difference between a working copy file and version 1. Documentation reference: http://www.subversion.org.cn/tsvndoc/