SVN HOWTO

http://subversion.tigris.org/
Stand: 2007-10-10

mfg Gernot

Inhalt


Server

Repository einrichten

svnadmin create --fs-type=fsfs /var/svn/myrepo

/var/svn/myrepo/conf/passwd

[...]
[users]
user=password
[...]

/var/svn/myrepo/conf/svnserve.conf

[...]
[general]
password-db=passwd
[...]

Die übliche Ordnerstruktur sollte folgendermaßen aussehen:

svn import ./mysrc file:///var/svn/myrepo -m "initial import"

svnserve -d -r /var/svn

WebSVN

svn checkout svn://websvn.tigris.org/svn/websvn/tags/1.61
username = "guest"
empty password

cp ./1.61 /var/www/htdocs/websvn/
cd /var/www/htdocs/websvn/
cp ./include/distconfig.inc ./include/config.inc

/var/htdocs/websvn/include/config.inc

[...]
$config->addRepository("MyRepo", "/var/svn/myrepo");
[...]

Client

Checkout

svn checkout svn://svnserver/myrepo

Update

svn update

Commit

svn commit

SSH

svn checkout svn+ssh://svnserver/var/svn/myrepo

Anderer SSH Benutzer:
SVN_SSH="ssh -l username" svn checkout svn+ssh://svnserver/var/svn/myrepo