98

For Subversion 1.7, where is the SVN "config" file located on the various major operating systems (specifically on Windows, Mac OS X and Linux)?

Paolo
  • 20,112
  • 21
  • 72
  • 113
mstrap
  • 16,808
  • 10
  • 56
  • 86

5 Answers5

141

~/.subversion/config or /etc/subversion/config

for Mac/Linux

and

%appdata%\subversion\config

for Windows

Wolf
  • 9,679
  • 7
  • 62
  • 108
Baxter
  • 2,416
  • 1
  • 22
  • 29
  • What about setting a proper editor? Could it be also kdiff3 ? – pro_metedor Nov 06 '12 at 12:02
  • @pro_metedor See the QA corresponding to [setting the svn editor](http://stackoverflow.com/questions/6506653/change-svn-message-editor/). – Bengt Apr 29 '13 at 11:38
  • My TortoiseSVN 1.9 installation on Windows included a config DIRECTORY, which prevented me running the command line tool. I've removed the directory, replaced it with a FILE, and all seems to be well again in SVN-land. – David A. Gray Jul 29 '17 at 08:47
  • 1
    In my case : C:\Users\UserName\AppData\Roaming\Subversion – tony497 Feb 19 '21 at 08:50
  • @tony497 yep that's equivalent to '%appdata%\subversion\config which can be pasted directly into the explorer address bar. – Baxter Feb 22 '21 at 12:54
  • Note that the `/etc/subversion/config` is the *system-level* configuration and the `~/.subversion/config` is the *user-specific* configuration, which overrides settings in the system-wide configuration. The user-specific configuration files are created by the `svn` command like `svn --version` if the file does not already exists. – PRouleau Feb 06 '22 at 15:06
8

In windows 7, 8, and 10 you can find at the following location

C:\Users\<user>\AppData\Roaming\Subversion

If you enter the following in the Windows Explorer address bar, it will take you right there.

%appdata%\Subversion
Mat Lipe
  • 725
  • 8
  • 14
gmhk
  • 15,598
  • 27
  • 89
  • 112
3

Not sure about Win but n *nix (OS X, Linux, etc.) its in ~/.subversion

prodigitalson
  • 60,050
  • 10
  • 100
  • 114
  • The common name for UNIX, Mac OSX, Gnu/Linux, is Unix. Note the case. (I think I got the case spelling wrong for OSX). UNIX is a trademark. Unix is a class of operating system. – ctrl-alt-delor Feb 28 '18 at 18:32
0

@Baxter's is mostly correct but it is missing one important Windows-specific detail.

Subversion's runtime configuration area is stored in the %APPDATA%\Subversion\ directory. The files are config and servers.

However, in addition to text-based configuration files, Subversion clients can use Windows Registry to store the client settings. It makes it possible to modify the settings with PowerShell in a convenient manner, and also distribute these settings to user workstations in Active Directory environment via AD Group Policy. See SVNBook | Configuration and the Windows Registry (you can find examples and a sample *.reg file there).

enter image description here

bahrep
  • 29,961
  • 12
  • 103
  • 150
0

In TortoiseSVN you can access and modify some settings in the context menu "Settings/General" in explorer.

E.g. the "Global ignore pattern" can be edited directly in the dialog box. Such changings are the stored in the registry as bahrep pointed out in her answer.

(Win10/TortoiseSVN 1.13.1, Build 28686 - 64 Bit)

Heri
  • 4,368
  • 1
  • 31
  • 51