Configure Svn in Mac OS X

Source: Internet
Author: User

After xcode is installed, the Mac OS X system has built-in SVN support, so all you need to do is configure.

1. Create a directory to save the software repository.
Sudo SU (then enter the password)
Mkdir/OPT
Mkdir/opt/SVN
Mkdir/opt/SVN/Repos
The directory/opt/SVN/repos/is created/

2. Create a version repository svnadmin create/opt/SVN/Repos

3. Modify the authorization Configuration
Go to the repository configuration directory CD/opt/SVN/repos/Conf
(1) edit the configuration file VI svnserve. conf to cancel the comments of the following lines.
Anon-access = read
Auth-access = write
Password-DB = passwd (password configuration SAVING file)
Auth-DB = authz (authentication configuration SAVING file)

(2) edit the password configuration file VI passwd
Format: "user name = password"

(3) edit the authentication file VI authz
Format: [groups]
User Group name = user group member
[Directory to be authorized]
@ Group name = permission
User name = permission
For example:
[Groups]
G_developers = jcccn, Jesse, Bill
G_tester = Jerry, Wang
[/]
@ G_developer = r
Jcccn = RW
* =
[/Jcccn]
@ G_tester = RW
Jcccn = RW
* = R

(4) Configure to ignore the file VI ~ /. Subversion/config

If the ". Subversion" directory does not exist, run the "SVN status" command. Although this command will fail, it will create the required files for you.

Find the global-ignores line, remove the comment, and edit it:
Global-ignores = build *~. NIB *. So *. pbxuser *. Mode *. perspective *

Find enable-auto-Props = yes and remove the comments. declare the following text file in [auto-Props] section:
*. Mode * = SVN: mime-type = text/X-xcode
*. Pbxuser = SVN: mime-type = text/X-xcode
*. Perspective * = SVN: mime-type = text/X-xcode
*. Pbxproj = SVN: mime-type = text/X-xcode

4. Start svnserve:
Svnserve-d-r/opt/SVN/Repos
Killall-9 svnserve can be used to end the service

Note: you may encounter permission issues. You can use the sudo command. If the svn dB file is root, change it to user permissions:
Sudo chown-r username/opt/SVN/Repos
Sudo chmod-r 755/opt/SVN/Repos

In addition, if SVN files are copied from other locations to Mac hard disks, they will encounter "operation not permitted, you cannot change the file.

Why?

Please use sudo chflags-r nouchg/opt/SVN/Repos

In short, if the svn directory encounters a strange permission drop problem, you can do it in three steps:
Sudo chflags-r nouchg/opt/SVN/Repos
Sudo chown-r username/opt/SVN/Repos
Sudo chmod-r 755/opt/SVN/Repos

Finally, we suggest you do not forget to "Clean Up "~

SVN clients on Mac OS, svnx, scplugin

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.