
Initial Setup
configuration
<Location /repos>
DAV svn
SVNPath /var/www/svn/repos
# Limit write permission to list of valid users.
<LimitExcept GET PROPFIND OPTIONS REPORT>
# Require SSL connection for password protection.
# SSLRequireSSL
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
</LimitExcept>
</Location>
cd /var/www sudo mkdir svn cd svn sudo svnadmin create repos sudo chown -R apache.apache repos sudo service httpd restart Setting up repository and importing
mkdir myproj cd myproj mkdir trunk mkdir branches mkdir tags cd trunk <put all main files here>
svn import myproj file:///var/www/svn/repos/myproj -m "Initial layout and import for myproj" to checkout repository | ||||||||
| Changed: | ||||||||
| < < | ||||||||
| > > | ||||||||
to commit changes to repository
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
to add or remove files from svn logging
to make sure programs and scripts are executable
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
to update local file with contents of the repository
| ||||||||
| Deleted: | ||||||||
| < < | to setup repository
| |||||||
to tunnel to svn server | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
moving repository to new server:
sudo svnadmin dump /var/www/svn/repos >current_repo_backup
cd /var/www sudo mkdir svn cd svn svnadmin create repos sudo chown apache.apache repos
sudo svnadmin load /var/www/svn/repos <current_repo_backup
| ||||||||