Version Control with Subversion - Chapter 7. Advanced Topics - Configuration and the Windows Registry
Configuration and the Windows Registry
In addition to the usual INI-based configuration area,
Subversion clients running on Windows platforms may also use
the Windows registry to hold the configuration data. The
option names and their values are the same as in the INI
files. The “file/section” hierarchy is
preserved as well, though addressed in a slightly different
fashion—in this schema, files and sections are just
levels in the registry key tree.
Subversion looks for system-wide configuration values
key. For example, the
which is in the
miscellany section of the
config file, would be found at
Per-user configuration values should be stored under
Registry-based configuration options are parsed
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:
The per-user INI files
The per-user Registry values
The system-wide INI files
The system-wide Registry values
Also, the Windows Registry doesn't really support the
notion of something being “commented out”.
However, Subversion will ignore any option key whose name
begins with a hash (
#) character. This
allows you to effectively comment out a Subversion option
without deleting the entire key from the Registry, obviously
simplifying the process of restoring that option.
command-line client never
attempts to write to the Windows Registry, and will not
attempt to create a default configuration area there. You can
create the keys you need using the
program. Alternatively, you can create a
.reg file, and then double-click on that
file from the Explorer shell, which will cause the data to be
merged into your registry.
Example 7.1. Sample Registration Entries (.reg) File.
"#global-ignores"="*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store"
The previous example shows the contents of a
.reg file which contains some of the most
commonly used configuration options and their default values.
Note the presence of both system-wide (for network
proxy-related options) and per-user settings (editor programs
and password storage, among others). Also note that all the
options are effectively commented out. You need only to
remove the hash (
#) character from the
beginning of the option names, and set the values as you
[an error occurred while processing this directive]