11.07.2015 Views

Version Control with Subversion - Login

Version Control with Subversion - Login

Version Control with Subversion - Login

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Customizing Your <strong>Subversion</strong> Experiencesvn command, such as svn --version. A new configuration directory <strong>with</strong> the defaultcontents will be created.The per-user configuration area also contains a cache of authentication data. The authdirectory holds a set of subdirectories that contain pieces of cached information used by<strong>Subversion</strong>'s various supported authentication methods. This directory is created in such away that only the user herself has permission to read its contents.Configuration and the Windows RegistryIn addition to the usual INI-based configuration area, <strong>Subversion</strong> clients running on Windowsplatforms may also use the Windows Registry to hold the configuration data. The optionnames and their values are the same as in the INI files. The “file/section” hierarchy ispreserved as well, though addressed in a slightly different fashion—in this schema, filesand sections are just levels in the Registry key tree.<strong>Subversion</strong> looks for system-wide configuration values under theHKEY_LOCAL_MACHINE\Software\Tigris.org\<strong>Subversion</strong> key. For example, theglobal-ignores option, which is in the miscellany section of the config file, wouldbe found atHKEY_LOCAL_MACHINE\Software\Tigris.org\<strong>Subversion</strong>\Config\Miscellany\global-ignores. Per-user configuration values should be stored underHKEY_CURRENT_USER\Software\Tigris.org\<strong>Subversion</strong>.Registry-based configuration options are parsed before their file-based counterparts, sothey are overridden by values found in the configuration files. In other words, <strong>Subversion</strong>looks for configuration information in the following locations on a Windows system; lowernumberedlocations take precedence over higher-numbered locations:1. Command-line options2. The per-user INI files3. The per-user Registry values4. The system-wide INI files5. The system-wide Registry valuesAlso, the Windows Registry doesn't really support the notion of something being“commented out.” However, <strong>Subversion</strong> will ignore any option key whose name begins <strong>with</strong>a hash (#) character. This allows you to effectively comment out a <strong>Subversion</strong> option<strong>with</strong>out deleting the entire key from the Registry, obviously simplifying the process ofrestoring that option.The svn command-line client never attempts to write to the Windows Registry and will notattempt to create a default configuration area there. You can create the keys you need usingthe REGEDIT program. Alternatively, you can create a .reg file (such as the one inExample 7.1, “Sample registration entries (.reg) file”), and then double-click on that file'sicon in the Explorer shell, which will cause the data to be merged into your Registry.Example 7.1. Sample registration entries (.reg) fileREGEDIT4[HKEY_LOCAL_MACHINE\Software\Tigris.org\<strong>Subversion</strong>\Servers\groups][HKEY_LOCAL_MACHINE\Software\Tigris.org\<strong>Subversion</strong>\Servers\global]193

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!