Because I don’t use subversion that often, i thought that it might be cool to have some basic svn commands written down here… so that’s what i did.
on the server do:
create a new branch:
# svnadmin create /path/to/new/branch # chown www-data:www-data /path/to/new/branch
the piece of text to put into your apache2 config to enable svn over WebDAV:
<Location /newbranch> DAV svn SVNPath /path/to/new/branch SVNAutoversioning on AuthType Basic AuthName "Subversion new branch, please authenticate" AuthUserFile /path/to/new/branch/.passwd Require valid-user </Location>
create that .passwd file:
# htpasswd -cs /path/to/new/branch/.passwd username
to add an other user, use only “-c” the second time.
on client side do:
download all that stuff witch is in the repository (checkout):
$ svn co --username username https://svn.yourserver.com/apachealias
then, edit stuff. If you added some new files, add them to the repo with:
$ svn add newfile.txt
next time you edit stuff in your local repository, make an update to be sure that you work with up to date files:
$ svn up
and finally, when you are finished working, commit your work back to the repository:
$ svn ci -m 'comment about your changes'