The best way to define ignore files and keywords for all users of a repository is to add them to the folder properties. However, unless you know which folder level will be checked out, you have to set these properties recursively throughout your repository hierarchy, and remember to add them to new folders. Proper inherited properties is a future design goal for Subversion, but is not available yet.
However, you can define global settings for all subversion clients and all users on one PC. Read the section Configuration and the Windows Registry in the Subversion Book.
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 (Accessed using the Edit button in TSVN settings)
- The per-user Registry values (HKCU, used by TSVN settings)
- The system-wide INI files
- The system-wide Registry values (HKLM)
Option 1 takes precedence over option 5. Here's an example. If you want to set the ignore pattern globally, setting: [HKEY_LOCAL_MACHINE\\Software\\Tigris.org\\Subversion\\Config\\miscellany]
"global-ignores"="*.o *.lo *.la .*~ *.swp *.bak *.exe *.dll *.~?? *.[Tt]mp"
will work. But always keep in mind:
- not all users have the rights to read HKLM keys
- The settings in HKLM are overwritten by the same settings in HKCU and of course the two Subversion config files.
The global config file can normally be found at:
C:\\Documents and Settings\\All Users\\Application Data\\Subversion
The user config file can normally be found at:
C:\\Documents and Settings\\{user name}\\Application Data\\Subversion
The directory names can vary according to your system's country settings.