Subversion Step-by-Step Configuration
Copyright©2004
Manilal , [email protected]
Permission is granted to copy,
distribute and/or modify this document under the terms of the GNU
Free Documentation License,
Version 1.2 or any later version published by the Free Software
Foundation;
Created on : Fri
Apr 07 12:13:13 IST 2005
Step 1:
Make sure that these packages are installed :
subversion-1.1.0-5
subversion-devel-1.1.0-5
subversion-perl-1.1.0-5
Step 2:
Create a new Repository with the following command:
[root@ost2 ~]# svnadmin create /home/svn/call_centre
Step 3:
Edit the /home/svn/call_centre/conf/svnserve.conf
and enable the following lines :
[general]
password-db = passwd
realm = SK Call Centre Repository
Step 4:
Edit the file /home/svn/call_centre/conf/passwd and ad the following lines:
[users]
manoj=manoj
You can add as many users in the format USERNAME=PASSWORD. The passwords are not encrypted.
Step 5:
Set a text editor as the default SVN editor:
[root@ost2 ~]# export SVN_EDITOR=vi
Now that your Repository and authentication schemes are set, you need to import the development source tree to the server. You can use the file protocol or the SVN protocol to import the files. If you need to make the repository available in a network then you have to set up the svnserve. Issue the command:
[root@ost2 ~]# svnserve -d -r /home/svn/
This will run the svn server in daemon mode.
Step 6:
You can now import the source tree with the following command:
[mal@ost2 ~]$ svn import call_centre svn://192.168.0.250/call_centre --username manoj
Here “call_centre” is the orginal source tree.
You can also use the file protocol to import the tree.
[root@ost2 ~]# svn import call_centre file:///home/svn/call_centre
Step 7:
You can checkout the source by using the command:
[manilal@ost5 ~]$ svn checkout svn://192.168.0.250/call_centre
More help can be obtained by using the command : svn help
Subversion Homepage:
Online help:
http://svnbook.red-bean.com/en/1.1/index.html
http://svnbook.red-bean.com/en/1.0/index.html