Difference between revisions of "SVN server installation (Windows)"
Line 2: | Line 2: | ||
+ | =Setup= | ||
+ | |||
+ | |||
+ | ==Installation== | ||
− | |||
* Download Visual SVN server for windows: http://www.visualsvn.com/server/download/ | * Download Visual SVN server for windows: http://www.visualsvn.com/server/download/ | ||
* Install Visual SVN server. Choose your installation folder + repository directory | * Install Visual SVN server. Choose your installation folder + repository directory | ||
− | =Users / groups configuration= | + | ==Users / groups configuration== |
+ | |||
* Open the '''Visual SVN server''' application. | * Open the '''Visual SVN server''' application. | ||
* Open properties | * Open properties | ||
Action > Properties | Action > Properties | ||
[[File:SVN server windows 1.png|none|Windows SVN server 01]] | [[File:SVN server windows 1.png|none|Windows SVN server 01]] | ||
+ | |||
*Click Repositories, adjust “Everyone” rights to Read Only | *Click Repositories, adjust “Everyone” rights to Read Only | ||
[[File:SVN server windows 2.png|none|Windows SVN server 02]] | [[File:SVN server windows 2.png|none|Windows SVN server 02]] | ||
+ | |||
* Add a new user and add 'read / write' permissions to this new user | * Add a new user and add 'read / write' permissions to this new user | ||
[[File:SVN server windows 3.png|none|Windows SVN server 03]] | [[File:SVN server windows 3.png|none|Windows SVN server 03]] | ||
+ | |||
[[File:SVN server windows 4.png|none|Windows SVN server 04]] | [[File:SVN server windows 4.png|none|Windows SVN server 04]] | ||
− | =Create | + | =Create repository= |
+ | |||
+ | ==standalone use== | ||
+ | |||
Right click on “repositories” -> create New Repository | Right click on “repositories” -> create New Repository | ||
[[File:SVN server windows 5.png|none|Windows SVN server 05]] | [[File:SVN server windows 5.png|none|Windows SVN server 05]] | ||
+ | |||
Enter the repository name and let the server create the default structure for you: | Enter the repository name and let the server create the default structure for you: | ||
[[File:SVN server windows 6.png|none|Windows SVN server 06]] | [[File:SVN server windows 6.png|none|Windows SVN server 06]] | ||
+ | |||
→ Note the SVN URL. You’ll need it later when you’re gonna setup your project, within the maven pom. | → Note the SVN URL. You’ll need it later when you’re gonna setup your project, within the maven pom. | ||
− | = | + | |
+ | ==Mirror Google Code== | ||
+ | |||
Google provides a free subversion service through its “Google Code” service. However, there’s no quality analysis. … So, in order to provide quality checks we will mirror the google code repository. | Google provides a free subversion service through its “Google Code” service. However, there’s no quality analysis. … So, in order to provide quality checks we will mirror the google code repository. | ||
Therefore, we’ll be able to perform quality scans. | Therefore, we’ll be able to perform quality scans. | ||
+ | |||
* Create a new repository, see previous chapter | * Create a new repository, see previous chapter | ||
[[File:SVN server windows 7.png|none|Windows SVN server 07]] | [[File:SVN server windows 7.png|none|Windows SVN server 07]] | ||
+ | |||
* Right click on the repository -> All tasks -> Manage hooks | * Right click on the repository -> All tasks -> Manage hooks | ||
[[File:SVN server windows 8.png|none|Windows SVN server 08]] | [[File:SVN server windows 8.png|none|Windows SVN server 08]] | ||
+ | |||
You have to '''edit''' the “pre-revision property change hook” and put the following command: | You have to '''edit''' the “pre-revision property change hook” and put the following command: | ||
Line 48: | Line 65: | ||
exit 0 | exit 0 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
This will check that the execution (synchronization) was successful. | This will check that the execution (synchronization) was successful. | ||
[[File:SVN server windows 9.png|none|Windows SVN server 09]] | [[File:SVN server windows 9.png|none|Windows SVN server 09]] |
Latest revision as of 16:39, 19 October 2014
Contents
Setup
Installation
- Download Visual SVN server for windows: http://www.visualsvn.com/server/download/
- Install Visual SVN server. Choose your installation folder + repository directory
Users / groups configuration
- Open the Visual SVN server application.
- Open properties
Action > Properties
- Click Repositories, adjust “Everyone” rights to Read Only
- Add a new user and add 'read / write' permissions to this new user
Create repository
standalone use
Right click on “repositories” -> create New Repository
Enter the repository name and let the server create the default structure for you:
→ Note the SVN URL. You’ll need it later when you’re gonna setup your project, within the maven pom.
Mirror Google Code
Google provides a free subversion service through its “Google Code” service. However, there’s no quality analysis. … So, in order to provide quality checks we will mirror the google code repository.
Therefore, we’ll be able to perform quality scans.
- Create a new repository, see previous chapter
- Right click on the repository -> All tasks -> Manage hooks
You have to edit the “pre-revision property change hook” and put the following command:
exit 0
This will check that the execution (synchronization) was successful.