After installing Xcode, the Mac OS X system has built-in SVN support, so all you need to do is configure (can be done by svnserve--version command to see if SVN is already available. 1. Create the directory where you want to save the repositories. sudo su (then enter the password) Mkdir/optmkdir/opt/svnmkdir/opt/svn/repos created the directory/OPT/SVN/REPOS/2. Create a version repository Svnadmin create/opt/svn/ Repos3. Modify the authorization configuration into the warehouse configuration directory cd/opt/svn/repos/conf (1) Edit Profile VI svnserve.conf uncomment the following lines anon-access = Readauth-access = Writepassword-db = passwd (save file for password configuration) auth-db = Authz (save file for authentication configuration) (2) Edit Password profile VI passwd format for "username = password" (3) Edit authentication file vi authz format for [ Groups] User group name = User group member [requires authorized directory]@ Group name = Permission User Name = permission for example: [groups]g_developers = Jcccn,jesse,billg_tester = jerry,wang[/] @g_ Developer = RJCCCN = rw* =[/JCCCN] @g_tester = RWJCCCN = rw* = R# # # for permission settings for all repositories [/]
# # # Group name before you add @, user name does not add.
* = is for everyone to set permissions, here is set all other people do not have read and write permissions.
[/]
@harry_and_sally = RW
* = (4) Configure ignore file VI ~/.subversion/config if the ". Subversion" Directory does not exist, run the "SVN status" command, although this command will fail, but will create the required files for you. Find Global-ignores Line, remove comment, edit: global-ignores = Build *~.nib *.so *.pbxuser *.mode *.perspective* Find enable-auto-props = yes Remove the comment and declare the following text file in the [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-xcode4. Start svnserve:svnserve-d-r/opt/svn/ ReposThere are spaces between the svnserve and the trailing-d-r path names (absolute paths), otherwise the system will not find the corresponding files will be reported No such file or directory error )End service can be used killall-9 Svnserve Note: It is possible to encounter permissions problems, you can use the sudo command, SVN db file if it is root, to change user rights: sudo chown-r Username/opt/svn/repossudo Chmod-r 755/opt/svn/repos Another, if the SVN file is copied from other places to the Mac hard disk, you will encounter "Operation not permitted" (the main idea: You are OK, blind, brother's files you can not move) tips. What's the whole? Use sudo chflags-r nouchg/opt/svn/repos in short, if the SVN directory encounters a strange permission problem, the general three-step walk can be done: sudo chflags-r nouchg/opt/svn/repossudo chown -R Username/opt/svn/repossudo Chmod-r 755/opt/svn/repos Last friendship advice, don't forget first "clean up" ~ Some SVN client on Mac OS, Svnx,scplugin[Reference article]1, http://www.2cto.com/os/201309/247054.html2, http://superich2008.iteye.com/blog/20246583, http://blog.csdn.net/chengkaizone/article/details/22748497
Build svn on Mac