Refer to SVN manual at http://svnbook.red-bean.com/en/1.0/svn-book.html
What worked for me:
repositories created by
svnadmin create /path/to/repo/module
initial import via svn import module file:///path/to/repo/module -m "initial import"
make sure you have the following subdirectories in this initial folder that you import
trunk (all the code goes here)
tags (empty)
branches (empty)
local checkout:
svn checkout file:///path/to/repo/module/trunk module
Tortoise CVS checkout repository URL like:
svn+ssh://user.name@machine.name/path/to/repo/module/trunk
User management for svn repositories
Initial setup:
groupadd svnusers #add a new group for svnusers
chgrp svnusers repo/ -R #repo is now under svnusers
chmod g=swrx repo/ -R #the directory tree is now writable by group
For each new svnuser with write access:
usermod -a -G svnusers newuser #add newuser to the svnusers group
id newuser #make sure it took
Rescind SVN write permission from a user
gpasswd -d newuser svnusers
What worked for me:
repositories created by
svnadmin create /path/to/repo/module
initial import via svn import module file:///path/to/repo/module -m "initial import"
make sure you have the following subdirectories in this initial folder that you import
trunk (all the code goes here)
tags (empty)
branches (empty)
local checkout:
svn checkout file:///path/to/repo/module/trunk module
Tortoise CVS checkout repository URL like:
svn+ssh://user.name@machine.name/path/to/repo/module/trunk
User management for svn repositories
Initial setup:
groupadd svnusers #add a new group for svnusers
chgrp svnusers repo/ -R #repo is now under svnusers
chmod g=swrx repo/ -R #the directory tree is now writable by group
For each new svnuser with write access:
usermod -a -G svnusers newuser #add newuser to the svnusers group
id newuser #make sure it took
Rescind SVN write permission from a user
gpasswd -d newuser svnusers
svn checkout and possibly commit needs access to the user's home directory. If for any reason the user's home directory does not exist or is not writable, svn will fail
ReplyDelete