Use subversion in Centos

Source: Internet
Author: User
Use subversion1. in Centos to install yuminstallsubversion2. create version Library. mkdir-p/var/svn/repositories (create a version Library Directory) B. cd/var/svn/repositoriesc. svnadmincreaterock-eng (create version database rock-eng) 3. start s .. use subversion 1 in Centos. install yum install subversion2. create version Library. mkdir-p/var/svn/repositories (create a version Library Directory) B. cd/var/svn/repositoriesc. svnadmin create rock-eng (create version Library rock-eng) 3. start svnsvnserve-d-r/var/svn/repositories4. configure the access permission. cd/var/svn/repositories/rock-eng/conf/B. vim svnserve. conf [plain] ### This file controls the configuration of the svnserve daemon, if you ### use it to allow access to this repository. (If you only allow ### access through http: and/or file: URLs, then this file is ### irrelevant .) ### Visit http://subversion.tigris.org/ For more information. [general] ### These options control access to the repository for unauthenticated ### and authenticated users. valid values are "write", "read", ### and "none ". the sample settings below are the defaults. anon-access = none auth-access = write ### The password-db option controls the location of the password ### database file. unless you specify a path starting with a/, ### File's location is relative to the directory containing ### this configuration file. ### If SASL is enabled (see below), this file will NOT be used. ### Uncomment the line below to use the default password file. password-db = passwd ### The authz-db option controls the location of the authorization ### rules for path-based access control. unless you specify a path ### starting with a/, the file' S location is relative to the ### directory containing this file. if you don't specify an ### authz-db, no path-based access control is done. ### Uncomment the line below to use the default authorization file. authz-db = authz ### This option specifies the authentication realm of the repository. ### If two repositories have the same authentication realm, they shocould ### have the same password Database, and vice versa. the default realm ### is repository's uuid. # realm = My First Repository [sasl] ### This option specifies whether you want to use the Cyrus SASL ### library for authentication. default is false. ### This section will be ignored if svnserve is not built with Cyrus ### SASL support; to check, run 'svnserve -- version' and look for a line ### reading' Cyrus SASL authenticati On is available. '# use-sasl = true ### These options specify the desired strength of the security layer ### that you want SASL to provide. 0 means no encryption, 1 means ### integrity-checking only, values larger than 1 are correlated ### to the valid key length for encryption (e.g. 128 means 128-bit ### encryption ). the values below are the defaults. # min-encryption = 0 # max-encryption = 2 56 B. vim passwd [plain] ### This file is an example password file for svnserve. ### Its format is similar to that of svnserve. conf. as shown in the ### example below it contains one section labeled [users]. ### The name and password for each user follow, one account per line. [users] # harry = harryssecret # sally = sallyssecret rockeng= 123456 c. vim authz [plain] ### This file is an example autho Rization file for svnserve. ### Its format is identical to that of mod_authz_svn authorization ### files. ### As shown below each section defines authorizations for the path and ### (optional) repository specified by the section name. ### The authorizations follow. an authorization line can refer to: ###-a single user, ###-a group of users defined in a special [groups] section, ###-an alias Defined in a special [aliases] section, ###-all authenticated users, using the '$ authenticated' token, ###-only anonymous users, using the '$ anonus us' token, ###-anyone, using the' * 'wildcard. ###### A match can be inverted by prefixing the rule '~ '. Rules can ### grant read ('r') access, read-write ('rw ') access, or no access ###(''). [aliases] # joe =/C = XZ/ST = Dessert/L = Snake City/O = Snake Oil, Ltd. /OU = Research Institute/CN = Joe Averag e [groups] # harry_and_sally = harry, sally # harry_sally_and_joe = harry, sally, & joe [/] # harry = rw # & joe = r # * = rockeng = rw # [repository:/baz/fuz] # @ harry_and_sally = rw # * = r 5. restart svnkillall svnser Vesvnserve-d-r/var/svn/repositories6. check out: svn co svn: // 127.0.0.1/rock-eng7. add File: svn add Directory 8. submit the modification: svn commit9. delete the file but save the local copy: svn delete -- keep-local directory 10. ignore data and attachment Directory a in the current directory. svn propedit svn: ignore. b. enter the directory name in the editor and press enter to separate c. svn commit11. view the status of the current directory: svn status Problem 1: svn: the log information cannot be obtained using the external editor; consider setting the environment variable $ SVN_EDITOR, or using -- message (-m) or -- file (-F) option svn: no SVN_EDITOR, VISUAL, or EDITOR environment variables are set, and no "edito" is set in the configuration parameters during runtime. R-cmd option solution: a. vim ~ /. Bash_profile B. Add: export SVN_EDITOR = vim
 
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.