Difference between revisions of "Subversion Settings"
Peter gummer (Talk | contribs) (→Configuration's examples) |
|||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:SVN]] | [[Category:SVN]] | ||
== Overview == | == Overview == | ||
− | |||
− | |||
* To ensure Subversion is used as wanted, please configure your machine/account as described below to ensure that we enable keywords expansion. The SVN repository is configured to check those keywords, if there are not set, you won't be able to commit new files. | * To ensure Subversion is used as wanted, please configure your machine/account as described below to ensure that we enable keywords expansion. The SVN repository is configured to check those keywords, if there are not set, you won't be able to commit new files. | ||
− | |||
* Basically you will need to enable auto properties, and set the value for each type of file. Check at the end of this page for examples. | * Basically you will need to enable auto properties, and set the value for each type of file. Check at the end of this page for examples. | ||
− | |||
== Install the tools == | == Install the tools == | ||
− | You will find everything needed on the download page of the [http://subversion. | + | You will find everything needed on the download page of the [http://subversion.apache.org/packages.html subversion project page]. Especially the subversion command line tools and, for windows users, TortoiseSVN (a graphical tool integrated with the windows Shell). |
− | + | ||
== Configure your account == | == Configure your account == | ||
− | |||
=== Configuration : file locations === | === Configuration : file locations === | ||
− | |||
Typically, Subversion uses two per-user and site-wide configurations. | Typically, Subversion uses two per-user and site-wide configurations. | ||
− | |||
==== site-wide configuration ==== | ==== site-wide configuration ==== | ||
− | |||
Unix: | Unix: | ||
/etc/subversion/config | /etc/subversion/config | ||
− | + | ||
Windows: | Windows: | ||
%ALLUSERSPROFILE%\Application Data\Subversion\config | %ALLUSERSPROFILE%\Application Data\Subversion\config | ||
Line 28: | Line 19: | ||
==== per-user configuration ==== | ==== per-user configuration ==== | ||
− | |||
Unix: | Unix: | ||
~/.subversion/config | ~/.subversion/config | ||
− | + | ||
Windows: | Windows: | ||
%APPDATA%\Subversion\config | %APPDATA%\Subversion\config | ||
Line 51: | Line 41: | ||
=== Configuration's examples === | === Configuration's examples === | ||
− | * Here are concrete examples | + | * Here are concrete examples. We would advise you to use the INI based files; this way you can copy them easily and even use them on Linux and so on. (And also because registry keys are not that easy to edit, and you may have to reboot, or restart a few application to take them into account.) |
* Using registry keys | * Using registry keys | ||
REGEDIT4 | REGEDIT4 | ||
− | |||
[HKEY_CURRENT_USER\Software\Tigris.org\Subversion] | [HKEY_CURRENT_USER\Software\Tigris.org\Subversion] | ||
− | |||
[HKEY_CURRENT_USER\Software\Tigris.org\Subversion\Config] | [HKEY_CURRENT_USER\Software\Tigris.org\Subversion\Config] | ||
− | |||
[HKEY_CURRENT_USER\Software\Tigris.org\Subversion\Config\miscellany] | [HKEY_CURRENT_USER\Software\Tigris.org\Subversion\Config\miscellany] | ||
− | "global-ignores"="*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* *.swp ~*" | + | "global-ignores"="*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* *.swp .*.swp ~* EIFGENs .git " |
"enable-auto-props"="yes" | "enable-auto-props"="yes" | ||
"use-commit-times"="yes" | "use-commit-times"="yes" | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
* Using INI based files: | * Using INI based files: | ||
Line 89: | Line 59: | ||
enable-auto-props = yes | enable-auto-props = yes | ||
use-commit-times = yes | use-commit-times = yes | ||
− | + | ||
− | + | ==Read More== | |
− | + | Read the [[Subversion_Tutorial|tutorial on subversion]] for more details about subversion. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 12:59, 2 May 2014
Contents
Overview
- To ensure Subversion is used as wanted, please configure your machine/account as described below to ensure that we enable keywords expansion. The SVN repository is configured to check those keywords, if there are not set, you won't be able to commit new files.
- Basically you will need to enable auto properties, and set the value for each type of file. Check at the end of this page for examples.
Install the tools
You will find everything needed on the download page of the subversion project page. Especially the subversion command line tools and, for windows users, TortoiseSVN (a graphical tool integrated with the windows Shell).
Configure your account
Configuration : file locations
Typically, Subversion uses two per-user and site-wide configurations.
site-wide configuration
Unix: /etc/subversion/config Windows: %ALLUSERSPROFILE%\Application Data\Subversion\config REGISTRY:HKLM\Software\Tigris.org\Subversion\Config
per-user configuration
Unix: ~/.subversion/config Windows: %APPDATA%\Subversion\config REGISTRY:HKCU\Software\Tigris.org\Subversion\Config
Windows
- You can configure your subversion client tools using different ways: INI files and windows registry keys
- Registry-based configuration options are parsed before their file-based counterparts, so are overridden by values found in the configuration files. In other words, configuration priority is granted in the following order on a Windows system:
- Command-line options
- The per-user INI files
- The per-user Registry values
- The system-wide INI files
- The system-wide Registry values
- Check the "%APPDATA%\subversion" folder
Linux
- Use INI based file. Check at the end of this page for examples.
Configuration's examples
- Here are concrete examples. We would advise you to use the INI based files; this way you can copy them easily and even use them on Linux and so on. (And also because registry keys are not that easy to edit, and you may have to reboot, or restart a few application to take them into account.)
- Using registry keys
REGEDIT4 [HKEY_CURRENT_USER\Software\Tigris.org\Subversion] [HKEY_CURRENT_USER\Software\Tigris.org\Subversion\Config] [HKEY_CURRENT_USER\Software\Tigris.org\Subversion\Config\miscellany] "global-ignores"="*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* *.swp .*.swp ~* EIFGENs .git " "enable-auto-props"="yes" "use-commit-times"="yes"
- Using INI based files:
[miscellany] global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* *.swp ~* enable-auto-props = yes use-commit-times = yes
Read More
Read the tutorial on subversion for more details about subversion.