SVN software versioning and a revision control system
Table of Contents
1 SVN (Apache Subversion)
Es wird ein Repository für mehrere Projekte eingerichtet. Jedes
Projekt hat die Verzeichnisse trunk, branches und tags und die
Projekt Daten befinden sich im Verzeichnis trunk. Die
Projekt-Verzeichnisse projekt
liegen im Verzeichnis
/path/to/projects
. Projekte können auch in Unterverzeichnissen
gruppiert werden. Weitere Projekte können später, auch aus Eclipse
heraus, in das Repository aufgenommen werden.
For a good read see the SVNBook or SVNBook (german).
-
Installieren (SVN, Ubuntu).
sudo apt-get install subversion
-
Repository erzeugen:
sudo svnadmin create /path/to/repos
-
Projekte übergeben:
svn import /path/to/projects file:///path/to/repos --message "Initial repository layout"
-
Zustand der Repositories abfragen:
svnlook help
-
Authorisierung in der Datei
conf/svnserve.conf
[general] anon-access = none auth-access = write password-db = passwd authz-db = authz
i.e., accounts will be defined in file passwd, user authorization in file authz
-
Authorisierung in conf/authz. The setting below grants username read/write access at svnroot:
[/] user_name = rw
-
Authentisierung in conf/passwd, Benutzer
user_name
anlegen:[users] user_name = usersSecretPassword
-
SVN-Server starten:
svnserve -d --foreground -r /path/to/repos
-
Info zu checkout Kommando co:
svn co help
-
Checkout durchführen
cd /path/to/checkoutdir
auf dem server:
svn co svn://localhost/path/to/project/trunk
auf dem client
svn co svn://<svn-host>/path/to/project/trunk project --username user_name
where
<svn-host>
is the servername or its ip-address. -
Projekt (aus dem Repos) aktualisieren
cd /path/to/checkoutdir/project; svn update
Date: 2011-02-11 Fr
HTML generated by org-mode 7.4 in emacs 22