src/eric7/Plugins/VcsPlugins/vcsPySvn/Config.py

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

eric ide

mercurial