cd /home/svn
sudo chown -R www-data:subversion myproject
sudo chmod -R g+rws myproject

sudo addgroup subversion
sudo usermod -a -G subversion USERNAME
sudo usermod -a -G subversion www-data