Kiln » TortoiseHg » TortoiseHg
Clone URL:  
settings.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
******** Settings ******** .. module:: settings.dialog :synopsis: Dialog used to set preferences .. figure:: figures/settings.png :alt: Settings dialog Settings dialog The Settings dialog is used to configure both TortoiseHg and the underlying Mercurial DVCS. Since TortoiseHg uses Mercurial's underlying configuration system to store and retrieve its settings, these are essentially the same thing. Mercurial on Windows has a three-tier configuration system. 1) A site-wide configuration file in :file:`C:\\Program Files\\TortoiseHg\\Mercurial.ini` This file is read first and thus has the lowest priority. 2) A per-user configuration file in :file:`C:\\Documents and Settings\\username\\Mercurial.ini` This file is read second and thus can override settings in the site-wide configuration file. 3) A per-repository configuration file in :file:`repo-root\\.hg\\hgrc` This file is read last and can override site-wide and user global settings. The site-wide file can be overwritten on upgrades so it is recommended that you do not make changes to this file. Instead, you should make changes to your user :file:`Mercurial.ini` and/or the repository :file:`hgrc` file. The TortoiseHg Settings dialog enforces this suggestion by only operating in two modes: Global edits your user :file:`Mercurial.ini` file Repository edits a repository :file:`.hg/hgrc` file In TortoiseHg 0.8, you may toggle between the two modes using the combo box at the top of the dialog. Most TortoiseHg users will want to store all configurables in their global user settings, and only use the repository hgrc to store paths (remote repository aliases) and web settings, though it is possible to override many configurables per-repository (a common example is to configure a different username for use in a repository). Also note that the user and repository configuration files may not exist until you run the Settings dialog for the first time. Tabs ==== The Settings tool is a tabbed application. Each tab corresponds roughly to a section of your :file:`Mercurial.ini` file, though there is a certain amount of overlap. Some sections were split across multiple tabs for clarity. Every tab but :guilabel:`Sync` has the same format, a list of configurable options with a drop-down combo box with possible values and a history of options you have used for that setting. The configurable name (label) has a tooltip which describes in more detail what you are configuring and its default value. The description of the currently focused configurable is also shown in a text box at the bottom of the dialog. Please consult the Mercurial wiki for more detailed information about these configurables (except for the first three tabs: :guilabel:`TortoiseHg`, :guilabel:`Commit`, :guilabel:`Changelog`, which are specifically for TortoiseHg). .. module:: TortoiseHg.settings :synopsis: Dialog used to set general TortoiseHg preferences TortoiseHg ---------- :guilabel:`3-way Merge Tool:` Graphical merge program for resolving merge conflicts. If left unspecified, Mercurial will use the first applicable tool it finds on your system or use its internal merge tool that leaves conflict markers in place. Chose :guilabel:`internal:merge` to force conflict markers, :guilabel:`internal:prompt` to always select local or other, or :guilabel:`internal:dump` to leave files in the working directory for manual merging. :guilabel:`Visual Diff Command:` Specify visual diff tool; must be an extdiff command. :guilabel:`Skip Diff Window:` Bypass the builtin visual diff dialog and directly use your visual diff tool's directory diff feature. Only enable this feature if you know your diff tool has a valid extdiff configuration. Default: False. :guilabel:`Visual Editor:` Specify the visual editor used to view files, etc. :guilabel:`CLI Editor:` The editor to use during a commit and other instances where Mercurial needs multiline input from the user. Only used by command line interface commands. :guilabel:`Tab Width:` Specify the number of spaces that tabs expand to in various TortoiseHg windows. Default: Not expanded. :guilabel:`Max Diff Size:` The maximum size file (in KB) that TortoiseHg will show changes for in the changelog, status, and commit windows. A value of zero implies no limit. Default: 1024 (1MB). :guilabel:`Bottom Diffs:` Show the diff panel below the file list in status, shelve, and commit dialogs. Default: False (show diffs to right of file list). .. module:: commit.settings :synopsis: Dialog used to set commit specific preferences Commit ------ :guilabel:`Username:` Name associated with commits. :guilabel:`External Commit Tool:` Select commit tool launched by TortoiseHg. (Qct is no longer distributed as part of TortoiseHg). Default: None (use the builtin tool). [DEPRECATED] :guilabel:`Summary Line Length:` Maximum length of the commit message summary line. If set, TortoiseHg will issue a warning if the summary line is too long or not separated by a blank line. Default: 0 (unenforced). :guilabel:`Message Line Length:` Word wrap length of the commit message. If set, the popup menu can be used to format the message and a warning will be issued if any lines are too long at commit. Default: 0 (unenforced). .. module:: changelog.settings :synopsis: Dialog used to set changelog specific preferences Changelog --------- :guilabel:`Author Coloring:` Color changesets by author name. If not enabled, the changes are colored green for merge, red for non-trivial parents, black for normal. Default: False. :guilabel:`Long Summary:` If true, concatenate multiple lines of changeset summary until they reach 80 characters. Default: False. :guilabel:`Log Batch Size:` The number of revisions to read and display in the changelog viewer in a single batch. Default: 500. :guilabel:`Copy Hash:` Allow the changelog viewer to copy the changeset hash of the currently selected changeset into the clipboard. Default: False. .. module:: synchronize.settings :synopsis: Dialog used to set synchronize specific preferences Sync ---- The :guilabel:`Sync` tab is where you can store URLs (paths) to related repositories. It is rare to store paths in the site-wide or user configuration files, most of the time you will only store these in a repository configuration file. Mercurial has two special path names that can be used as default targets for some operations. * *default* - the default URL to pull from, usually clone source * *default-push* - the default push target when using the command line :guilabel:`After pull operation:` Operation which is performed directly after a successful pull. :guilabel:`update` equates to :command:`pull --update`, :guilabel:`fetch` equates to the fetch extension, :guilabel:`rebase` equates to :command:`pull --rebase`. Default: none. :guilabel:`Remote repository paths` In this pane you can configure aliases for repositories that you frequently synchronize with. Mercurial will add a *default* alias to the clone source automatically. All configured path aliases will be listed in the Synchronize tool path drop-down box, and they can be used as short-cuts on the command line. .. module:: web.settings :synopsis: Dialog used to set web server specific preferences Web --- :guilabel:`Name:` Repository name to use in the web interface. Default is the working directory. :guilabel:`Description:` Textual description of the repository's purpose or contents. :guilabel:`Contact:` Name or email address of the person in charge of the repository. :guilabel:`Style:` Which template map style to use. :guilabel:`Archive Formats:` Comma separated list of archive formats allowed for downloading. :guilabel:`Port:` Port to listen on. :guilabel:`Push Requires SSL:` Whether to require that inbound pushes be transported over SSL to prevent password sniffing. :guilabel:`Stripes:` How many lines a "zebra stripe" should span in multiline output. Default is 1; set to 0 to disable. :guilabel:`Max Files:` Maximum number of files to list per changeset. :guilabel:`Max Changes:` Maximum number of changes to list on the changelog. :guilabel:`Allow Push:` Whether to allow pushing to the repository. If empty or not set, push is not allowed. If the special value "*", any remote user can push, including unauthenticated users. Otherwise, the remote user must have been authenticated, and the authenticated user name must be present in this list (separated by whitespace or ","). The contents of the allow_push list are examined after the deny_push list. :guilabel:`Deny Push:` Whether to deny pushing to the repository. If empty or not set, push is not denied. If the special value "*", all remote users are denied push. Otherwise, unauthenticated users are all denied, and any authenticated user name present in this list (separated by whitespace or ",") is also denied. The contents of the deny_push list are examined before the allow_push list. :guilabel:`Encoding:` Character encoding name. .. module:: proxy.settings :synopsis: Dialog used to set proxy specific preferences Proxy ----- :guilabel:`Host:` Host name and (optional) port of proxy server, for example ``myproxy:8000``. :guilabel:`Bypass List:` Optional. Comma-separated list of host names that should bypass the proxy. :guilabel:`Password:` Optional. Password to authenticate with at the proxy server. :guilabel:`User:` Optional. User name to authenticate with at the proxy server. .. module:: email.settings :synopsis: Dialog used to set email specific preferences Email ----- :guilabel:`From:` Email address to use in the "From" header and for the SMTP envelope. :guilabel:`To:` Comma-separated list of recipient email addresses. :guilabel:`Cc:` Comma-separated list of carbon copy recipient email addresses. :guilabel:`Bcc:` Comma-separated list of blind carbon copy recipient email addresses. :guilabel:`method:` Optional. Method to use to send email messages. If value is "smtp" (default), use SMTP (configured below). Otherwise, use as name of program to run that acts like sendmail (takes :command:`-f` option for sender, list of recipients on command line, message on stdin). Normally, setting this to ``sendmail`` or ``/usr/sbin/sendmail`` is enough to use sendmail to send messages. :guilabel:`SMTP Host:` Host name of mail server. :guilabel:`SMTP Port:` Port to connect to on mail server. Default: 25. :guilabel:`SMTP TLS:` Connect to mail server using TLS. Default: False. :guilabel:`SMTP Username:` Username to authenticate to mail server with. :guilabel:`SMTP Password:` Password to authenticate to mail server with. :guilabel:`Local Hostname:` Hostname the sender can use to identify itself to the mail server. .. module:: diff.settings :synopsis: Dialog used to set diff specific preferences Diff ---- :guilabel:`Git Format:` Use git extended diff header format. Default: False. :guilabel:`No Dates:` Do not include modification dates in diff headers. Default: False. :guilabel:`Show Function:` Show which function each change is in. Default: False. :guilabel:`Ignore White Space:` Ignore white space when comparing lines. Default: False. :guilabel:`Ignore WS Amount:` Ignore changes in the amount of white space. Default: False. :guilabel:`Ignore Blank Lines:` Ignore changes whose lines are all blank. Default: False. From command line ================= The setting dialog can be started from command line :: hgtk repoconfig for the repository settings (:file:`.hg/hgrc` file) or :: hgtk userconfig for the user configuration (:file:`Mercurial.ini` file). The syntax is simple, no options or parameters are needed, except the global options. .. vim: noet ts=4