The mod_dav_svn package allows access to a repository using HTTP, via Apache httpd server and subversion package installs svnadmin tool. To provide repository access to only authentic users and to use the default authorization file; append the following lines to project_repo/conf/file.The subversion reads its configuration from /etc/httpd/conf.d/file. Conventionally, every Subversion project has trunk, tags, and branches directories directly under the project's root directory.
To check whether it is installed or not use following command.
[[email protected]]$ sudo apt-get update [sudo] password for jerry: [[email protected]]$ sudo apt-get install subversion [[email protected]]$ svn --version svn, version 1.7.5 (r1336830) compiled Jun 21 2013, We have seen how to install Subversion client on GNU/Linux.
Let us see how to create a new repository and allow access to the users. 1 root root 229 Aug 4 [[email protected] OS svn]# service httpd restart Stopping httpd: [FAILED] Starting httpd: httpd: apr_sockaddr_info_get() failed for Cent OS httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for Server Name [ OK ] [[email protected] OS svn]# service httpd status httpd (pid 1372) is running...
On server we have to install Apache httpd module and svnadmin tool. [[email protected] OS svn]# We have configured the Apache server successfully, now we will configure the repository.
After adding configuration, file looks as follows: Let us create Subversion users and grant them access to the repository. [[email protected] OS svn]# svnadmin create project_repo [[email protected] OS svn]# ls -l project_repo total 24 drwxr-xr-x. The trunk is a directory where all the main development happens and is usually checked out by the developers to work on the project.
htpasswd command is used to create and update the plain-text files which are used to store usernames and passwords for basic authentication of HTTP users. The tags directory is used to store named snapshots of the project.
Working copy is a private workplace where developers do their changes, and later on, submit these changes to the repository.
As the name suggests, 'update' operation is used to update working copy.
From now, they can perform all the supported operations to the repository.