free hit counter

Monday, November 28, 2005

Subversion- adding a new repository

First create the repository and import in files to it (don't forget to add branches, tags, and trunks dir to the pre imported structure)

cd c:\svn
svnadmin create --fs-type fsfs newProject
cd c:\temp
svn import existingSrc file:///c:/svn/newProject -m "initial add"

Then make the repository live by editing subversion.conf

< Location /newProject\>
DAV svn
SVNPath C:/svn/newProject

AuthType Basic
AuthName "Subversion newProjectrepository"
AuthUserFile c:/bin/svn-auth-file

Require valid-user

AuthzSVNAccessFile c:/bin/svn-acl

Then make the repository visible by appending to the access control list - svn-acl

# newProject
# on all subdirectories
# specialUsers group has full access, all others have read access only
@specialUsers= rw
* = r

Finally, restart the Apache service



Post a Comment

<< Home