Subversion Installation Guide

xiaoxiao2021-03-20  197

Subversion is a recent version control system that started to be popular. And its author is the main author of the CVS system, a lightweight server type, with branch management

Subversion has the following advantages relative to CVS:

Increase the version control of meta-data, and Subversion has many settings through metadata. Added the version control of the folder, no folder version control is a big shortcoming in CVS, which is resolved in the Subversion. Support files, renames and movements of folders, have a lot of benefits, convenient, no need to describe it. Truly Atomic Commits, submit as a transaction, if a controlled object is submitted, then other submitted objects will not be valid. This feature is really a word: good! Also support the controlled objects in different warehouses (Repository). Some performance optimizations, such as branching and tags, will be optimized by the control method of folders. The largest difference from Subversion and CVS may be the definition of its revision. Subversion is not for a particular controlled object, but for the entire warehouse, you will not say "4th revision" in Subversion, but "Warehouse Amendment 4 file a" Each submission will result in an increase in the warehouse revision number. The file revision number without a change will also increase.

1.

installation

Subversion

a) http://subversion.tigris.org/ Download the installation file system is divided into: Subversion, from http://subversion.tigris.org/, is software that implements the service system. Tortoisesvn, downloaded from http://torToiseSvn.tigris.org/, is a very good SVN work program, combined into the file manager, which is very convenient. SVNService.exe, downloaded from http://dark.clansoft.dk/~mbn/svnservice/, is an entry program developed for Subversion as a Win32 service.

2, install SVN Server (1) Install SVN-1.0.9-setup.exe, the installation directory is D: / Program files / Subversion. (2) Install TortoiseSVN-1.1.2-Unicode_svn-1.1.2.msi. Installation Directory For D: / Program Files / TortoiseSVN. The latter needs to restart the computer. (3) Create a directory svnroot for the source code, such as E: / Work. Establish a new directory E: / WORK / Proj1, as the home directory of Repository. Use the creation work area to initialize the directory SvnAdmin Create E: The database structure required in this directory is generated. (4) Start SVN Server Instance SVNserve -d -re: / Work can create an SVN server instance with E: / Work as a work root directory. (5) Pack the SVN Server into the service: Copy SVNService.exe to D: / Program Files / Subversion / BIN Start -> Run. Enter "CMD", enter, enter the command line interface. Enter d: / program files / Subversion / bin. Run SVNService -Install -d -re: / work. Register SVN Server into a background service and set the repository home directory to E: / Work. (6) Enter Computer Management -> Services and Services -> Services -> SVNService service, change its launch type from manual to automatic. (7) Start service. (8) If there is a firewall installed, you need to open the 3690 port.

3, install SVN Apache. First, SVN loading module, the modified configuration file Apache httpd.conf: LoadModule dav_svn_module modules / mod_dav_svn.soLoadModule dav_module modules / mod_dav.soLoadModule authz_svn_module modules / mod_authz_svn.so then configure the repository: DAV svn SVNParentPath d: / SVN Configure the verification mode: Here, the user's authentication mode: htpasswd -cm d: / svn / svn-auth-file user1 then prompts the password, here is joined. Then add one user: htpasswd -md: / svn / svn-auth-file user2 and then modify the configuration: DAV SVNSVNPARETPATH ​​D: / SVNAUTHTYPE Basicauthname "Subversion Repository" Authorfile D: / SVN / SVN-Auth-FileRequire Valid-useRauthzsvnaccessFile D: / SVN / SVN-Access-file Here, you have to write this svn-access-file file, which is used to control the permission to access the warehouse, we write instructions in the back [ SVN1: /] // This means that the access rights of the root directory of the warehouse SVN1 Harry = rw // svn1 warehouse Harry users have read and write rights Sally = R / / SVN1 warehouse Sally users have read rights [svn2: /] / Access to the root of the SVN2 Warehouse Harry = r // Harry users only read permissions in the root of the SVN2 warehouse, Sally = // sally users do not have any permissions in the root directory of the SVN2 warehouse # [/] // This representation is all Under the root of the warehouse # * = r // This indicates that all users have read rights # [groups] // this represents group settings # sady // This represents members in a group # SVN2-Developers = Sally # [SVN1: /] # @ svn1-developers = rw // If you add @ symbols in front, it means that this is the group permission setting to complete this setting. Restart Apache, you can create "Proj" under E: / Work, right-click, TortoisesVn-> Create Repository Here, Select BDB. (2) Enter E: / WORK / Proj / Conf In the E: / WORK / Proj / Conf directory, create a new users.conf file. ISERS.CONF Save the username and password. The format is as follows: [users] username = password

Use the text editor to open SVNserve.conf, add [general] Anon-access = noneauth-access = writepassword-db = users.conf

(3) Right-click, TortoisesVN-> Repobrowse, enter svn: // / default, enter the username and password existing in user.conf, you can enter the repository5. The client can have multiple:

TortoiseSVN

6. Main Features SVN AddSvn deletesvn Copysvn Movesvn Statussvn Diffsvn Mergesvn Checkinsvn Checkoutsvn Commitsvn Update

7. The method of connecting to the warehouse URL connection to the warehouse (on the client), there are five types:

File: /// repospath / repopath, directly accessed, the simplest connection method, the simpler connection method, no server, permission is controlled by the operating system, if you use the FSFS (text) format, you can share in the LAN use. HTTP: // Serverip / Repos / REPO, can be accessed in this form using Apache as the server, and the permissions are set by Apache. HTTPS: // Serverip / Repos / REPO, like the previous one, and HTTPS encrypted communication is used. SVN: // Serverip / Repos / Repo, using SVNServe as the server, then this form can be used, which is a TCP / IP access method. Permissions are set by the profile of the warehouse. SVN SSH: // REPOS / REPO, like the previous one, while using SSH encrypted communication. 8. Site

forum

http://www.tigris.org

Related Websites

Http://subversion.tigris.org svn official website

Http://tortoisesvn.tigris.org TortoiseSvn, very good SVN client

http://dark.clansoft.dk/~mbn/svnservice/ svn service wrapper

http://subclipse.tigris.org svn eclipse plugin

http://ankhsvn.tigris.org/ SVN NET Plugin

Reference

Http://svn.ntcu.net/kwiki/ Chinese SVN data

http://svnbook.red-bean.com/ Book: Version Control with SVN

Http://sun.cis.scu.edu.tw/~nms9115/articles/softeng/scm/svn/2-install/svn_install.htm svn for Windows Chinese Installation Guide

Http://svn.ntcu.net/svnbook/ svn book Chinese translation

9. Modular design of third-party tool Subversion (in the "hierarchical design" section is described) and the ability to bind other languages ​​(in "Language outside of C " section ) Make it suitable for expansion of other software or the latest versions of support modules, review the link page of the Subversion site (http://subversion.tigris.org/project_links.html).

D.1 Client and Plugin Ankhsvn (http://ankhsvn.tigris.org/) Microsoft Visual Studio .NET Subversion Plugin JSVN (http://jsvn.alternateComputing.com/) Java Subversion client, containing an IDEA Plugin psvn.el (http://xsteve.nit.at/prg/vc_svn/) Emacs Subversion interface Rapidsvn (http://rapidsvn.tigris.org/) Based on WXPython Libraries across platform Subversion, SubClipse (Http://subclipse.tigris.org/) Subversion plugin under Eclipse Subway (http://nidaros.homedns.org/subway/) Microsoft SCC Provider for Subversion Sourcecross.org (http://www.sourcecross.org /) Microsoft SCC Provider for Subversion Supervision (http://supervision.tigris.org/) Java / Swing Graphical Client Sven (http://www.nikwest.de/software/#svenoverview) Using Mac OS X The Subversion graphical client SVN4EClipse (http://svn4eclipse.tigris.org/) designed for the Eclipse IDE Svn-Up (http://svnup.tigris.org/) based on Java-based Subversion and IDEA IDE's plugin TortoiseSvn (http://torToisesvn.tigris.org/) as Microsoft W The Subversion Client Workbench (http://pysvn.tigris.org /) Based on the Subversion Binding Pysvn (http: // pysvn) Based on the Python-based cross-platform software design environment D.2 and language built on Subversion .tigris.org /) Subversion API (http://subversion.tigris.org/) for Python's face-to-objects (http://subversion.tigris.org/) for Python, Perl, and Java; corresponding to the core C API SVNCPP (http://rapidsvn.tigris.org/) Subversion client API D.3 warehouse conversion tool CVS2SVN (http://cvs2svn.tigris.org/) from CVS to Subversion VSS2SVN (

转载请注明原文地址:https://www.9cbs.com/read-130359.html

New Post(0)