2009年11月7日 星期六

在 Mac OS X 10.6 安裝 SVN

CODE {
display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 8pt;
overflow:auto;
background: #f0f0f0 url(http://klcintw.images.googlepages.com/Code_BG.gif) left top repeat-y;
border: 1px solid #ccc;
padding: 10px 10px 10px 21px;
max-height:200px;
line-height: 1.2em;
}

Create User/Password for Access Control

sudo htpasswd -cm /etc/apache2/svn-auth-file username
Create /etc/apache2/other/svn.conf:

LoadModule dav_svn_module /usr/libexec/apache2/mod_dav_svn.so

\
DAV svn
SVNParentPath /Users/SVN-ROOT
SVNParentPath /opt/subversion/repos
SVNListParentPath on

AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/apache2/svn-auth-file
Require valid-user


This will make the Subversion repository /Users/SVN-ROOT/svn/fmt available athttp://localhost/svn/fmt.

Update the repositories owner (otherwise commits would fail):

chown -R www:www /Users/SVN-ROOT/*
Restart Apache

sudo apachectl restart

沒有留言: