|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2004 - 2019 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module defining configuration variables for the subversion package. |
|
8 """ |
|
9 |
|
10 from __future__ import unicode_literals |
|
11 |
|
12 # Available protocols for the repository URL |
|
13 ConfigSvnProtocols = [ |
|
14 'file://', |
|
15 'http://', |
|
16 'https://', |
|
17 'svn://', |
|
18 'svn+ssh://', |
|
19 ] |
|
20 |
|
21 |
|
22 DefaultConfig = "\n".join([ |
|
23 "### This file configures various client-side behaviors.", |
|
24 "###", |
|
25 "### The commented-out examples below are intended to demonstrate", |
|
26 "### how to use this file.", |
|
27 "", |
|
28 "### Section for authentication and authorization customizations.", |
|
29 "[auth]", |
|
30 "### Set password stores used by Subversion. They should be", |
|
31 "### delimited by spaces or commas. The order of values determines", |
|
32 "### the order in which password stores are used.", |
|
33 "### Valid password stores:", |
|
34 "### gnome-keyring (Unix-like systems)", |
|
35 "### kwallet (Unix-like systems)", |
|
36 "### keychain (Mac OS X)", |
|
37 "### windows-cryptoapi (Windows)", |
|
38 "# password-stores = keychain", |
|
39 "# password-stores = windows-cryptoapi", |
|
40 "# password-stores = gnome-keyring,kwallet", |
|
41 "### To disable all password stores, use an empty list:", |
|
42 "# password-stores =", |
|
43 "###", |
|
44 "### Set KWallet wallet used by Subversion. If empty or unset,", |
|
45 "### then the default network wallet will be used.", |
|
46 "# kwallet-wallet =", |
|
47 "###", |
|
48 "### Include PID (Process ID) in Subversion application name when", |
|
49 "### using KWallet. It defaults to 'no'.", |
|
50 "# kwallet-svn-application-name-with-pid = yes", |
|
51 "###", |
|
52 "### The rest of the [auth] section in this file has been deprecated.", |
|
53 "### Both 'store-passwords' and 'store-auth-creds' can now be", |
|
54 "### specified in the 'servers' file in your config directory", |
|
55 "### and are documented there. Anything specified in this section ", |
|
56 "### is overridden by settings specified in the 'servers' file.", |
|
57 "# store-passwords = no", |
|
58 "# store-auth-creds = no", |
|
59 "", |
|
60 "### Section for configuring external helper applications.", |
|
61 "[helpers]", |
|
62 "### Set editor-cmd to the command used to invoke your text editor.", |
|
63 "### This will override the environment variables that Subversion", |
|
64 "### examines by default to find this information ($EDITOR, ", |
|
65 "### et al).", |
|
66 "# editor-cmd = editor (vi, emacs, notepad, etc.)", |
|
67 "### Set diff-cmd to the absolute path of your 'diff' program.", |
|
68 "### This will override the compile-time default, which is to use", |
|
69 "### Subversion's internal diff implementation.", |
|
70 "# diff-cmd = diff_program (diff, gdiff, etc.)", |
|
71 "### Diff-extensions are arguments passed to an external diff", |
|
72 "### program or to Subversion's internal diff implementation.", |
|
73 "### Set diff-extensions to override the default arguments ('-u').", |
|
74 "# diff-extensions = -u -p", |
|
75 "### Set diff3-cmd to the absolute path of your 'diff3' program.", |
|
76 "### This will override the compile-time default, which is to use", |
|
77 "### Subversion's internal diff3 implementation.", |
|
78 "# diff3-cmd = diff3_program (diff3, gdiff3, etc.)", |
|
79 "### Set diff3-has-program-arg to 'yes' if your 'diff3' program", |
|
80 "### accepts the '--diff-program' option.", |
|
81 "# diff3-has-program-arg = [yes | no]", |
|
82 "### Set merge-tool-cmd to the command used to invoke your external", |
|
83 "### merging tool of choice. Subversion will pass 5 arguments to", |
|
84 "### the specified command: base theirs mine merged wcfile", |
|
85 "# merge-tool-cmd = merge_command", |
|
86 "", |
|
87 "### Section for configuring tunnel agents.", |
|
88 "[tunnels]", |
|
89 "### Configure svn protocol tunnel schemes here. By default, only", |
|
90 "### the 'ssh' scheme is defined. You can define other schemes to", |
|
91 "### be used with 'svn+scheme://hostname/path' URLs. A scheme", |
|
92 "### definition is simply a command, optionally prefixed by an", |
|
93 "### environment variable name which can override the command if it", |
|
94 "### is defined. The command (or environment variable) may contain", |
|
95 "### arguments, using standard shell quoting for arguments with", |
|
96 "### spaces. The command will be invoked as:", |
|
97 "### <command> <hostname> svnserve -t", |
|
98 "### (If the URL includes a username, then the hostname will be", |
|
99 "### passed to the tunnel agent as <user>@<hostname>.) If the", |
|
100 "### built-in ssh scheme were not predefined, it could be defined", |
|
101 "### as:", |
|
102 "# ssh = $SVN_SSH ssh -q", |
|
103 "### If you wanted to define a new 'rsh' scheme, to be used with", |
|
104 "### 'svn+rsh:' URLs, you could do so as follows:", |
|
105 "# rsh = rsh", |
|
106 "### Or, if you wanted to specify a full path and arguments:", |
|
107 "# rsh = /path/to/rsh -l myusername", |
|
108 "### On Windows, if you are specifying a full path to a command,", |
|
109 "### use a forward slash (/) or a paired backslash (\\\\) as the", |
|
110 "### path separator. A single backslash will be treated as an", |
|
111 "### escape for the following character.", |
|
112 "", |
|
113 "### Section for configuring miscelleneous Subversion options.", |
|
114 "[miscellany]", |
|
115 "### Set global-ignores to a set of whitespace-delimited globs", |
|
116 "### which Subversion will ignore in its 'status' output, and", |
|
117 "### while importing or adding files and directories.", |
|
118 "### '*' matches leading dots, e.g. '*.rej' matches '.foo.rej'.", |
|
119 "global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc", |
|
120 " *.pyo .*.rej *.rej .*~ *~ #*# .#* .*.swp .DS_Store", |
|
121 " *.orig *.bak cur tmp __pycache__ .directory", |
|
122 " .ropeproject .eric6project", |
|
123 "### Set log-encoding to the default encoding for log messages", |
|
124 "# log-encoding = latin1", |
|
125 "### Set use-commit-times to make checkout/update/switch/revert", |
|
126 "### put last-committed timestamps on every file touched.", |
|
127 "# use-commit-times = yes", |
|
128 "### Set no-unlock to prevent 'svn commit' from automatically", |
|
129 "### releasing locks on files.", |
|
130 "# no-unlock = yes", |
|
131 "### Set mime-types-file to a MIME type registry file, used to", |
|
132 "### provide hints to Subversion's MIME type auto-detection", |
|
133 "### algorithm.", |
|
134 "# mime-types-file = /path/to/mime.types", |
|
135 "### Set preserved-conflict-file-exts to a whitespace-delimited", |
|
136 "### list of patterns matching file extensions which should be", |
|
137 "### preserved in generated conflict file names. By default,", |
|
138 "### conflict files use custom extensions.", |
|
139 "# preserved-conflict-file-exts = doc ppt xls od?", |
|
140 "### Set enable-auto-props to 'yes' to enable automatic properties", |
|
141 "### for 'svn add' and 'svn import', it defaults to 'no'.", |
|
142 "### Automatic properties are defined in the section 'auto-props'.", |
|
143 "# enable-auto-props = yes", |
|
144 "### Set interactive-conflicts to 'no' to disable interactive", |
|
145 "### conflict resolution prompting. It defaults to 'yes'.", |
|
146 "# interactive-conflicts = no", |
|
147 "### Set memory-cache-size to define the size of the memory cache", |
|
148 "### used by the client when accessing a FSFS repository via", |
|
149 "### ra_local (the file:// scheme). The value represents the number", |
|
150 "### of MB used by the cache.", |
|
151 "# memory-cache-size = 16", |
|
152 "", |
|
153 "### Section for configuring automatic properties.", |
|
154 "[auto-props]", |
|
155 "### The format of the entries is:", |
|
156 "### file-name-pattern = propname[=value][;propname[=value]...]", |
|
157 "### The file-name-pattern can contain wildcards (such as '*' and", |
|
158 "### '?'). All entries which match (case-insensitively) will be", |
|
159 "### applied to the file. Note that auto-props functionality", |
|
160 "### must be enabled, which is typically done by setting the", |
|
161 "### 'enable-auto-props' option.", |
|
162 "# *.c = svn:eol-style=native", |
|
163 "# *.cpp = svn:eol-style=native", |
|
164 "# *.h = svn:keywords=Author Date Id Rev URL;svn:eol-style=native", |
|
165 "# *.dsp = svn:eol-style=CRLF", |
|
166 "# *.dsw = svn:eol-style=CRLF", |
|
167 "# *.sh = svn:eol-style=native;svn:executable", |
|
168 "# *.txt = svn:eol-style=native;svn:keywords=Author Date Id Rev URL;", |
|
169 "# *.png = svn:mime-type=image/png", |
|
170 "# *.jpg = svn:mime-type=image/jpeg", |
|
171 "# Makefile = svn:eol-style=native", |
|
172 "", |
|
173 ]) |
|
174 |
|
175 |
|
176 DefaultIgnores = [ |
|
177 "*.orig", |
|
178 "*.bak", |
|
179 "cur", |
|
180 "tmp", |
|
181 "__pycache__", |
|
182 ".directory", |
|
183 ".ropeproject", |
|
184 ".eric6project", |
|
185 ] |