Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

merge

Changeset c24ea27f9b21

Parents 4833809e1016

Parents 7a747b414310

by Steve Borho

Changes to 15 files · Browse files at c24ea27f9b21 Showing diff from parent 4833809e1016 7a747b414310 Diff from another changeset...

Change 1 of 1 Show Changes Only ReleaseNotes.txt Stacked
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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
  Release Notes for TortoiseHg    This file contains last minute notes to users about the releases, which may not  be included in the documentation or README files included with the distribution  kits. It also contains change information, for users who are interested in  what bugs have been fixed, and what features have been added in the current  version.    New features and improvement since 0.6:     * Status window now supports shelving of selected changes.   Unknown files are now displayed by default, hg status convention.     * Commit window now supports commit of selected changes (record-style)   or shelving of selected changes.   Modified, Added, and Removed files are preselected for commit.   Added a ctrl-o key accelerator for initiating a commit.   Added support for refreshing an applied MQ patch.   Improved support for merge (two parent) commits.     * Synchronize window now supports bundle files (*.hg).   Recognizes whether it has been launched in push or pull mode     * New rename window for simple file or directory renames.     * New rename guessing dialog for detecting renames after they happen.     * New tool for managing an .hgignore file.     * The configuration window has been reorganized for simplicity.     * Nautilus: Fixed file version detection.     * Hgtk: added --limit option to log.   added aliases to dialogs that support many operations.   added rename and guess commands.    New features and improvement in 0.6:     * Updated to Mercurial 1.1.X (1.1.2, as of release).     WARNING:   The GUI tools in TortoiseHg 0.6, including hgtk, have been updated to work   exclusively with Merecurial 1.1.X, and will not work with older (pre 1.1),   and perhaps even the later, releases of Mercurial.     * Explorer shell extensions:   - Display all available menus in primary context menu, with non-applicable   menu items disabled per selected objects.   - Improved 'sensitivity' of context menus. For example, the 'Create   Repository Here' menu will be disabled if the selected object is a file.     * General improvement and updates:   - Tab characters in source/diff lines can be expanded optionally with the   new 'tabwidth' config option.   - All commit dates are now displayed in local time, with time zone info.   - GUI opearations are immuned to mercurial commands defaults (defined in   [defaults] section of mercurial.ini)   - WinMerge has been added Mercurial's merge-tools list, and will be   detected and used automatically (subject to priority).     * New initialization (create new repo) window:   - Option to create special files (specially .hgignore)   - Option to create older (non-fncache) repo format.     * Changelog viewer:   - Removed Tags column. Tags are now displayed in summary lines.   - Add display of branch names in summary lines. Branch names are colored   with color scheme of gitweb style.   - Add file context menu to revert files to selected changeset     * Status window (changes apply also to the internal commit window):   - Support Mercurial's new 'resolve' command: with new 'ms' (merge state)   column in file-list area, plus new context menus to resolve merge   conflict and mark/unmark merge state.   - Replace Select & Deselect tool buttons with checkbox on the file-list   header.   - Add preliminary support for moving, renaming and copying of clean   (managed) files. - - Ignored files can not be added. + - Ignored files can now be added.     * Datamining (grep and annotate) window:   - Add source line numbers to annotate lines.     * Configuration window:   - New in-place editing support in 'paths' page.   - Updated hgweb style list per Mercurial 1.1   - New 'Tab Width' config option in 'TortoiseHG' page to expand tab   characters in source lines displayed, with maximum of 16 spaces   allowed (Default: disabled)     * Hgtk:   - Add 'init' command.   - Add --webdir-conf option to 'serve' command.   - Support command shortcut matching like hg. So 'hgtk cl' will bring up   the clone window.     * Nautilus:   - Removed 'Open Terminal Here' menu options     * Python trace collector:   - Show timestamp on output lines to assist debugging.    Bug fixes in 0.6:     * Fix context menu actions problem on non-ascii filenames   in status window [SF Bug 2151552].     * Fix missing parent/child fields in commit headers of changeset window,   mainly caused by empty commit messages in the parent/child changesets      New features and improvement in 0.5:     * Explorer shell extensions:   - share overlay icons with TortoiseSVN 1.5.x via TortoiseSVN's   TortoiseOverlays project (by Peer Sommerlund)     * New mercurial-like command line syntax for hgtk, with help support.     * The gPyFm merge-tool is not longer bundled (see bug 2119067)     * Interal commit dialog:   - show number of files selected (also apply to Status dialog)   - add 'Undo' button to rollback last commit.   - do not clear commit message window if commit fails   - accept commit message in multi-byte charset (fix bug 2116362)     * Synchronize dialog:   - load patchbomb extension automatically (by Peer Sommerlund)      Bug fixes in 0.5:     * [ 2119138 ] Merge-tool priority fix (by Mads Kiilerich)   * [ 2116362 ] Internal commit tool not support gbk comment   * [ 2113989 ] Can't create repository via Explorer context menu (when   a file is selected)   * [ 2103749 ] Changelog viewer doesn't refresh after making local tag     * nautilus: fix error when there is no repo in the current directory   (by Germ�n P�o-Caama�o)      New features and improvement in 0.4.1:     * Installer-only release to link with Mercurial 1.0.2    New features and improvement in 0.4:     * Updated to work, and link, with Mercurial 1.0.1     * Explorer shell extensions:   - Added user config option 'tortoisehg.overlayicons' to enable/disable   display of overlay icons in selected repos.     Available options:   True:   Show overlay icons   False:   Don't show overlay icons   localdisks:   [global (user) setting only]   Don't show overlay icons for repos reside on network drives.     - Create .hgignore file automatically when initializing new repo   via 'Initialize new repo' context menu.     * Hgk ('Revision Graph' on Explorer's context menu), better known as   'hg view', is officially replaced by TortoiseHg's changelog viewer   ('View Changelog').     Note: Hgk may be reinstated by user, if necessary. Though it would   need some work to setup.     * Changelog (History) Viewer:   - Added 'strip' and 'backout' functions to file context menu.   - Loading of changeset data (file list of diff chunks) is done in   background to improve response.   - Changeset window shows 'MAR' file status.   - File list has been moved to the left hand side.     * Synchronize dialog:   - Added 'Stop' button to abort command executions.   - Added support for Fetch extension, as Pull's 'Do fetch' option [ 1914855 ].   - Added buttons to 'View Pulled Changes' and 'Update to Tip'.   - Recall source and destination paths accessed in recent sessions.   - Recall Pull's 'Update to new tip' option setting from previous session   [ 1944469 ].     * Datamine dialog:   - Added 'Stop' button to abort grep searches.   - Added column for user names on annotate pages.     * Commit dialog (internal, _not_ Qct):   - Recall commit messages of recent commits.   - Fixed handlng of merged repo per new Hg behavior (must commit all   files in a merged repo)     * Clone dialog:   - Recall source and destination paths accessed in recent sessions.   - Cloning can now be aborted with the new 'Stop' button in HgCmd dialog.     * Recovery dialog:   - Added 'Stop' button to abort command executions.     * Added 'Stop' button to abort command executions in HgCmd dialog.   This applies to including Update, Clone and Commit dialogs, which   utilize HgCmd dialog to perform respective operations.     * Unicode handling:   - Improved handling of UTF strings in Mercurial's metadata (commit   message, author, etc).   - Support Mercurial's HGENCODING environment variable.     * Hgtk:   - Simplified installation on Unix/Linux systems.   - Confirm presence of critical Python modules, i.e. PyGTK and Mercurial.     * Logos and icons:   - Updated Hg icon (on context menu and dialogs) to new droplet design   introduced in Mercurial 1.0   - New TortoiseHg logo (in About dialog) by Peer Sommerlund.   - Several new menu icons by Peer Sommerlund, with better Windows   integration. The corresponding SVG source is also available in   TortoiseHg source tree.     * Several other bugfixes and UI improvements.    Bug fixes in 0.4:     * Explorer shell extensions:   - Register context menu and overlay icon extensions onto the Explorer's   approved list.   - Fixed ThreadingModel registry setting per MS doc [ 1895443 ]   * TortoiseHg program groups now read 'hgproc' with hg.ico (in earlier   versions, it used 'Python' with python.ico)   * Make modal dialogs stay on top of their respective parent application   (issue triggered by a bug in PyGTK).   * Fixed random crashes in web server.   * Fixed addremove behavior in Commit dialog.   * Activated target revision option in Synchronize window that had been   dormant so far (as reported by Doug Philips).   * Terminate all backgrounded searches in Datamine window upon exit, so   the associated Python process may terminate immediately too.   * [ 1884919 ] Change Log hscroller   * [ 1925985 ] HTTP port field not effective   * [ 1914859 ] Global options should show up more often   * [ 1914550 ] Changelog: Problems with german umlaut characters   * [ 1902446 ] Commit claims file not under root while kdiff is open.   * [ 1892791 ] Windows Explorer painfully slow for network drives    Changes and bug fixes since 0.4RC4:     * Fixed traceback when revert file in changeset or log windows.   * Fixed traceback when testing paths in Configure window.    Changes and bug fixes since 0.4RC3:     * Activated target revision option in Synchronize window that had been   dormant so far (as reported by Doug Philips).   * Terminate all backgrounded searches in Datamine window upon exit, so   the associated Python process may terminate immediately too.   * New icons by Peer Sommerlund for configuration windows to represent   repo and user config respectively.   * Theme improvement in the Configuration windows (by Peter Ruibal).   * Detect PyGtk and Mercurial installation more accurately in Hgtk   * Removed 'square-boxes' in license window (of About window) caused by   extra form-feed characters.    Changes and bug fixes since 0.4RC2:     * Fixed traceback in tracelog, which was broken in 0.4RC2.   * Right-click to diff/visual-diff to selected changeset, which replaced   the earlier diff-to-marked function.   * Create .hgignore file automatically when initializing new repo.   * Fix traceback when users try to enable internal commit dialog with   an empty 'commit' in mercurial.ini's 'tortoisehg' section.   * Handle empty cmd.differ entries in hgrc like hg does   * Register context menu and overlay icon extension onto the Explorer's   Approved list.   * Fixed UTF-8 encoding errors in hgcmd and several error message dialogs.   * New transparent TortoiseHg logo in About dialog, again by Peer Sommerlund.   * New 32x32 icons for dialogs to provide nicer icons when navigating   through the applications with Alt-Tab on Windows.   * Minor improvement/fixes on hgtk to simplify installation on *nix systems.    Changes and bug fixes since 0.4RC1:     * Added buttons to stop command execution in Synchronize, Recovery,   as well as any dialogs that use hgcmd dialog, including Update and   Clone dialogs.   * Show progress on status bar when updating changeset viewer.   * Support Mercurial's HGENCODING environment variable.   * [ Feature 1944469 ] Save and recall pull-update option in Synchronize   dialog across sessions.   * [ Bug 1939794 ] Unable to Merge changes with builtin commit UI.   * [ Bug 1941545 ] Clone log window doesn't scroll.   * [ Bug 1943382 ] hgproc.bat not executable without "installer"   * [ Bug 1941368 ] Configure Repository "Test" button results broken.   * [ Bug 1939911 ] Modal Dialogs aren't staying on top on application switch   * [ Bug 1941376 ] hgtk with no parameters gives no help.   * [ Bug 1937966 ] Changelog: utf8 messages handled incorrectly   * [ Bug 1942777 ] National characters are not handled correctly.    Fixes in Mercurial since 0.3:     * qimport fixed on Windows   * new built-in filemerge system replaces hgmerge patches   * many fixes for keyword extension   * new -U (context lines) argument for diff and qdiff commands    New features in 0.3     * Major improvements to changelog browser. It is now good enough to   deprecate both hgk and hgview. Neither are bundled with the 0.3   binary installer, but both can be added by the user if they wish.   Support for external revision log viewers will be dropped in 0.4.     * The new changelog browser supports filtering by file pattern,   keywords, dates, and branches. It is capable of graphing both the   repository changelog and individual filelogs. Changeset coloring by   author is optional (tortoisehg.authorcolor). All changeset graphing   is done incrementally in batches (tortoisehg.graphlimit: 500)     * New DataMine application for searching history (hg grep) and   inspecting file histories (hg annotate). This new application is   tabbed to facilitate debugging sessions where search results and   annotations can be grouped together for easy cross-reference.     * New changeset browser, supports multiple parents intrinsically and   supports a number of file-revision features (view at revision, save   at revision, annotate at revision, revert to revision, etc). The   new changeset browser is also integrated into the changelog browser.     * Standardized window layouts. Close buttons have been moved to the   toolbar. Dialogs that use progress bars now use a standard status   bar/progress bar widget. Tooltips have been added.     * Hgtk wrapper application for launching TortoiseHg dialogs from the   command line     * Support for an external visual editor: tortoisehg.editor. Takes   precedence over ui.editor when viewing files with TortoiseHg     * Performance improvements in Mercurial itself (cset 0973501e5f4a)     * New installer bitmap from Peer Sommerlund     * Misc: The Synchronize dialog has been improved. The Web Serve   dialog no longer requires a subprocess to run the web server. The   configuration dialog has a number of bug fixes for the paths tab,   and now has separators in the drop-down boxes for the varying value   types (current, suggested, history). Http authentication has been   fixed. The hg integration library has seen major cleanups.    Bug Fixes in 0.3:     * [ 1863086 ] "Revision Graph" fail on UNC path   Fixed by removing hgk from base install. Integrated log viewer   is UNC path safe.   * [ 1851395 ] Total Commander problem   * [ 1882074 ] global name 'p' is not defined   * [ 1854443 ] View changelog fails    New features in 0.2     * Gtools has been integrated into TortoiseHg proper. It is no longer   bundled as a Mercurial extension. The graphlog extension is now enabled   again by default (only usable from the CLI, however).     * Context menu icons, application window icons. The context menu has been   simplified.     * The changelog browser has a number of new features (filters and context   menu options). The tag browser and changelog tagging features have been   merged into this tool.     * Hgview is now the default history viewer, hgk is being deprecated.     * An email dialog for interfacing with the patchbomb extension. It can be   reached from the synchronize dialog and from the changelog browser.     * A new configuration tool (replacing hg-config dialogs) that allows you   to configure TortoiseHg and Mercurial.     * Most dialogs now use HgThread and GtkUI to run hg commands. These   classes run the command in a background thread and provide GUI prompts   for when user interaction is necessary (http web auth, etc). For some   commands, it also provides a progress bar.     * A preview of the new Mercurial merge back end. The python hgmerge.py   script is being integrated into Mercurial, and this installer has a   preview of how that will work. You need to unset any ui.merge in your   Mercurial.ini file in order for it to work properly. If you don't   configure anything it will use simplemerge to automatically perform   merges. If conflicts are found it falls back to kdiff3 to resolve   them interactively.     * Slight improvement on speed of overlay icons display.     * A new 'about' dialog.    Bugs fixed in 0.2     * [SF Bug #1851395] Overlay icons and context menus are no longer   restricted to MS-Explorer. So other file managers, such as Total   Commander, should be supported.     * [SF Bug #1844722] Users can now create repositories inside repository   via the context menu.    Changes since 0.2rc1     - N/A -  
Change 1 of 2 Show Entire File hggtk/​backout.py Stacked
 
34
35
36
37
38
39
40
41
 
42
43
44
 
76
77
78
79
80
81
82
83
84
 
34
35
36
 
 
 
 
 
37
38
39
40
 
72
73
74
 
 
 
75
76
77
@@ -34,11 +34,7 @@
  tbuttons = [   self._toolbutton(gtk.STOCK_GO_BACK, 'Backout',   self._backout_clicked, - 'Backout selected changeset'), - sep, - self._toolbutton(gtk.STOCK_CLOSE, 'Close', - self._close_clicked, - 'Close Window') + 'Backout selected changeset')   ]   for btn in tbuttons:   self.tbar.insert(btn, -1) @@ -76,9 +72,6 @@
  ' effect of the change being backed out.')   vbox.pack_start(frame, True, True, 4)   - def _close_clicked(self, toolbutton, data=None): - self.destroy() -   def set_notify_func(self, func, *args):   self.notify_func = func   self.notify_args = args
Change 1 of 2 Show Entire File hggtk/​clone.py Stacked
 
68
69
70
71
72
73
74
75
76
77
78
79
80
 
185
186
187
188
189
190
191
192
193
 
68
69
70
 
 
 
 
 
 
 
71
72
73
 
178
179
180
 
 
 
181
182
183
@@ -68,13 +68,6 @@
  ]   for btn in tbuttons:   self.tbar.insert(btn, -1) - sep = gtk.SeparatorToolItem() - sep.set_expand(True) - sep.set_draw(False) - self.tbar.insert(sep, -1) - button = self._toolbutton(gtk.STOCK_CLOSE, 'Close', - self._close_clicked, tip='Close Application') - self.tbar.insert(button, -1)   vbox = gtk.VBox()   self.add(vbox)   vbox.pack_start(self.tbar, False, False, 2) @@ -185,9 +178,6 @@
  vbox.pack_end(self._remote_cmd, False, False, 1)   vbox.pack_end(lbl, False, False, 1)   - def _close_clicked(self, toolbutton, data=None): - gtk.main_quit() -   def _toolbutton(self, stock, label, handler,   menu=None, userdata=None, tip=None):   if menu:
Change 1 of 2 Show Entire File hggtk/​gdialog.py Stacked
 
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
 
318
319
320
321
322
323
324
325
326
327
328
329
 
283
284
285
 
 
 
 
 
 
 
 
 
 
 
 
 
286
287
288
 
 
 
 
 
 
289
290
291
 
299
300
301
 
 
 
 
 
 
302
303
304
@@ -283,28 +283,9 @@
  tbuttons = self.get_tbbuttons()   for tbutton in tbuttons:   toolbar.insert(tbutton, -1) - sep = gtk.SeparatorToolItem() - sep.set_expand(True) - sep.set_draw(False) - toolbar.insert(sep, -1) - if self.main: - name = 'Quit' - tip = 'Close Application' - else: - name = 'Close' - tip = 'Close Window' - button = self.make_toolbutton(gtk.STOCK_CLOSE, name, - self._quit_clicked, tip=tip) - toolbar.insert(button, -1)   self.toolbar = toolbar   vbox.pack_start(toolbar, False, False, 0)   - # ctrl-Q quits - accel_group = gtk.AccelGroup() - self.add_accel_group(accel_group) - button.add_accelerator("clicked", accel_group, ord("q"), - gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE) -   # Subclass returns the main body   body = self.get_body()   vbox.pack_start(body, True, True, 0) @@ -318,12 +299,6 @@
  self.connect('delete_event', self.should_live)     - - def _quit_clicked(self, button, data=None): - if not self.should_live(): - self.destroy() - -   def _destroying(self, gtkobj):   try:   settings = self.save_settings()
Change 1 of 1 Show Entire File hggtk/​hgcmd.py Stacked
 
44
45
46
47
48
49
50
51
52
53
54
55
 
44
45
46
 
 
 
 
 
 
47
48
49
@@ -44,12 +44,6 @@
  self.connect('delete-event', self._delete)   self.connect('response', self._response)   - # ctrl-Q quits - accel_group = gtk.AccelGroup() - self.add_accel_group(accel_group) - self._button_ok.add_accelerator("clicked", accel_group, ord("q"), - gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE) -   self.pbar = None   if progressbar:   self.last_pbar_update = 0
Change 1 of 3 Show Entire File hggtk/​hgemail.py Stacked
 
31
32
33
34
35
36
37
38
39
40
41
42
 
44
45
46
47
48
49
 
50
51
52
 
174
175
176
177
178
179
180
181
182
 
31
32
33
 
 
 
 
 
 
34
35
36
 
38
39
40
 
 
 
41
42
43
44
 
166
167
168
 
 
 
169
170
171
@@ -31,12 +31,6 @@
  self.tbar = gtk.Toolbar()   self.tips = gtk.Tooltips()   - sep = gtk.SeparatorToolItem() - sep.set_expand(True) - sep.set_draw(False) - self._btn_close = self._toolbutton(gtk.STOCK_CLOSE, 'Close', - self._close_clicked, 'Close Window') -   tbuttons = [   self._toolbutton(gtk.STOCK_GOTO_LAST, 'Send',   self._on_send_clicked, @@ -44,9 +38,7 @@
  gtk.SeparatorToolItem(),   self._toolbutton(gtk.STOCK_PREFERENCES, 'configure',   self._on_conf_clicked, - 'Configure email settings'), - sep, - self._btn_close + 'Configure email settings')   ]   for btn in tbuttons:   self.tbar.insert(btn, -1) @@ -174,9 +166,6 @@
    self.connect('map_event', self._on_window_map_event)   - def _close_clicked(self, toolbutton, data=None): - self.destroy() -   def _toolbutton(self, stock, label, handler, tip):   tbutton = gtk.ToolButton(stock)   tbutton.set_label(label)
Change 1 of 2 Show Entire File hggtk/​hgignore.py Stacked
 
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
40
41
42
 
194
195
196
197
198
199
200
201
202
 
24
25
26
 
 
 
 
 
 
27
28
29
30
 
 
 
31
32
33
34
 
186
187
188
 
 
 
189
190
191
@@ -24,19 +24,11 @@
  self.tbar = gtk.Toolbar()   self.tips = gtk.Tooltips()   - sep = gtk.SeparatorToolItem() - sep.set_expand(True) - sep.set_draw(False) - self._btn_close = self._toolbutton(gtk.STOCK_CLOSE, 'Close', - self._close_clicked, 'Close Window') -   tbuttons = [   self._toolbutton(gtk.STOCK_REFRESH,   'Refresh',   self._refresh_clicked, - tip='Reload hgignore'), - sep, - self._btn_close + tip='Reload hgignore')   ]   for btn in tbuttons:   self.tbar.insert(btn, -1) @@ -194,9 +186,6 @@
  shell_notify(self.repo.wjoin('.hgignore'))   if self.notify_func: self.notify_func()   - def _close_clicked(self, toolbutton, data=None): - self.destroy() -   def _toolbutton(self, stock, label, handler, tip):   tbutton = gtk.ToolButton(stock)   tbutton.set_label(label)
 
124
125
126
127
128
129
 
 
 
130
131
132
 
142
143
144
145
 
146
147
148
 
176
177
178
179
 
180
181
182
 
124
125
126
 
 
 
127
128
129
130
131
132
 
142
143
144
 
145
146
147
148
 
176
177
178
 
179
180
181
182
@@ -124,9 +124,9 @@
    def _get_hg_history(self, rev=None, limit=10):   # get history - options = {} - if rev: options['rev'] = [rev] - if limit: options['limit'] = limit + options = [] + if rev: options += ['--rev', rev] + if limit: options += ['--limit', str(limit)]   self._do_hg_cmd('log', options)     # parse log output @@ -142,7 +142,7 @@
  name, value = re.split(':\s+', x, 1)   if name not in cs:   cs[name] = [] - cs[name].append(value) + cs[name].append(hglib.toutf(value))   if cs:   histlist.append(cs)   @@ -176,7 +176,7 @@
    try:   q = Queue.Queue() - args = [cmd] + [os.path.join(self.root, x) for x in self.files] + args = [cmd] + options + [os.path.join(self.root, x) for x in self.files]   hglib.hgcmd_toq(self.root, q, *args, **{})   out = ''   while q.qsize(): out += q.get(0)
Change 1 of 2 Show Entire File hggtk/​merge.py Stacked
 
59
60
61
62
63
64
65
66
67
68
69
70
71
72
 
73
74
75
 
113
114
115
116
117
118
119
120
121
 
59
60
61
 
 
 
 
 
62
63
64
 
 
 
65
66
67
68
 
106
107
108
 
 
 
109
110
111
@@ -59,17 +59,10 @@
  self._btn_unmerge_clicked,   tip='Undo merging and return working directory to'   ' one of it parent revision') - sep = gtk.SeparatorToolItem() - sep.set_expand(True) - sep.set_draw(False) - self._btn_close = self._toolbutton(gtk.STOCK_CLOSE, 'Close', - self._close_clicked, tip='Close Application')   tbuttons = [   self._btn_merge,   gtk.SeparatorToolItem(), - self._btn_unmerge, - sep, - self._btn_close + self._btn_unmerge   ]   for btn in tbuttons:   self.tbar.insert(btn, -1) @@ -113,9 +106,6 @@
  # show them all   self._refresh()   - def _close_clicked(self, toolbutton, data=None): - self.destroy() -   def _toolbutton(self, stock, label, handler,   menu=None, userdata=None, tip=None):   if menu:
Change 1 of 2 Show Entire File hggtk/​recovery.py Stacked
 
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
 
105
106
107
108
109
110
111
112
113
 
73
74
75
 
 
 
 
 
 
 
76
77
78
79
 
 
 
 
 
 
80
81
82
 
92
93
94
 
 
 
95
96
97
@@ -73,23 +73,10 @@
  ]   for btn in tbuttons:   self.tbar.insert(btn, -1) - sep = gtk.SeparatorToolItem() - sep.set_expand(True) - sep.set_draw(False) - self.tbar.insert(sep, -1) - button = self._toolbutton(gtk.STOCK_CLOSE, 'Close', - self._close_clicked, tip='Close Application') - self.tbar.insert(button, -1)   vbox = gtk.VBox()   self.add(vbox)   vbox.pack_start(self.tbar, False, False, 2)   - # ctrl-Q quits - accel_group = gtk.AccelGroup() - self.add_accel_group(accel_group) - button.add_accelerator("clicked", accel_group, ord("q"), - gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE) -   # hg output window   scrolledwindow = gtk.ScrolledWindow()   scrolledwindow.set_shadow_type(gtk.SHADOW_ETCHED_IN) @@ -105,9 +92,6 @@
  self.stbar = gtklib.StatusBar()   vbox.pack_start(self.stbar, False, False, 2)   - def _close_clicked(self, *args): - self._do_close() -   def _delete(self, widget, event):   self._do_close()   return True
Change 1 of 3 Show Entire File hggtk/​serve.py Stacked
 
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
 
93
94
95
96
97
98
99
100
 
151
152
153
154
155
156
157
158
159
160
 
74
75
76
 
 
 
 
 
 
 
 
 
 
 
77
78
79
 
82
83
84
 
 
85
86
87
 
138
139
140
 
 
 
 
141
142
143
@@ -74,17 +74,6 @@
  'Configure',   self._on_conf_clicked,   None) - sep = gtk.SeparatorToolItem() - sep.set_expand(True) - sep.set_draw(False) - self._button_close = self._toolbutton(gtk.STOCK_CLOSE, 'Quit', - self._close_clicked) - - # ctrl-Q quits - accel_group = gtk.AccelGroup() - self.add_accel_group(accel_group) - self._button_close.add_accelerator("clicked", accel_group, ord("q"), - gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE)     tbuttons = [   self._button_start, @@ -93,8 +82,6 @@
  self._button_browse,   gtk.SeparatorToolItem(),   self._button_conf, - sep, - self._button_close,   ]   for btn in tbuttons:   self.tbar.insert(btn, -1) @@ -151,10 +138,6 @@
  tbutton.connect('clicked', handler, userdata)   return tbutton   - def _close_clicked(self, *args): - if self._server_stopped() == True: - gtk.main_quit() -   def _delete(self, widget, event):   if self._server_stopped() == True:   gtk.main_quit()
Change 1 of 2 Show Entire File hggtk/​shlib.py Stacked
 
8
9
10
 
11
12
13
 
129
130
131
 
 
 
 
 
 
 
132
133
134
 
8
9
10
11
12
13
14
 
130
131
132
133
134
135
136
137
138
139
140
141
142
@@ -8,6 +8,7 @@
 """    import os +import gtk  import shelve  import time   @@ -129,6 +130,13 @@
   def set_tortoise_icon(window, icon):   window.set_icon_from_file(get_tortoise_icon(icon)) + # Global keybindings for TortoiseHg + window.connect('key-press-event', window_key) + +def window_key(window, event): + if event.keyval == ord('q') and (event.state & gtk.gdk.CONTROL_MASK): + devent = gtk.gdk.Event(gtk.gdk.DELETE) + window.emit('delete_event', devent)    def get_tortoise_icon(icon):   '''Find a tortoise icon, apply to PyGtk window'''
Change 1 of 1 Show Entire File hggtk/​synch.py Stacked
 
97
98
99
100
101
102
103
104
105
106
107
108
109
 
97
98
99
 
 
 
 
 
 
 
100
101
102
@@ -97,13 +97,6 @@
  ]   for btn in tbuttons:   self.tbar.insert(btn, -1) - sep = gtk.SeparatorToolItem() - sep.set_expand(True) - sep.set_draw(False) - self.tbar.insert(sep, -1) - button = self._toolbutton(gtk.STOCK_CLOSE, 'Quit', - self._close_clicked, tip='Quit Application') - self.tbar.insert(button, -1)   vbox = gtk.VBox()   self.add(vbox)   vbox.pack_start(self.tbar, False, False, 2)
Change 1 of 3 Show Entire File hggtk/​tagadd.py Stacked
 
48
49
50
51
52
53
54
55
56
57
58
59
 
66
67
68
69
70
71
 
72
73
74
 
149
150
151
152
153
154
155
156
157
 
48
49
50
 
 
 
 
 
 
51
52
53
 
60
61
62
 
 
 
63
64
65
66
 
141
142
143
 
 
 
144
145
146
@@ -48,12 +48,6 @@
  self.tbar = gtk.Toolbar()   self.tips = gtk.Tooltips()   - sep = gtk.SeparatorToolItem() - sep.set_expand(True) - sep.set_draw(False) - self._btn_close = self._toolbutton(gtk.STOCK_CLOSE, 'Close', - self._close_clicked, tip='Close Application') -   self._btn_addtag = self._toolbutton(   gtk.STOCK_ADD,   'Add', @@ -66,9 +60,7 @@
  tip='Remove tag from repository')   tbuttons = [   self._btn_addtag, - self._btn_rmtag, - sep, - self._btn_close, + self._btn_rmtag   ]   for btn in tbuttons:   self.tbar.insert(btn, -1) @@ -149,9 +141,6 @@
  continue   self._tagslist.append([tagname])   - def _close_clicked(self, toolbutton, data=None): - self.destroy() -   def _btn_tag_clicked(self, button):   """ select tag from tags dialog """   import tags
Change 1 of 2 Show Entire File hggtk/​update.py Stacked
 
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
 
112
113
114
115
116
117
118
119
120
 
55
56
57
 
 
 
 
 
58
59
 
 
60
61
62
 
105
106
107
 
 
 
108
109
110
@@ -55,15 +55,8 @@
  'Update',   self._btn_update_clicked,   tip='Update working directory to selected revision') - sep = gtk.SeparatorToolItem() - sep.set_expand(True) - sep.set_draw(False) - self._btn_close = self._toolbutton(gtk.STOCK_CLOSE, 'Close', - self._close_clicked, tip='Close Application')   tbuttons = [   self._btn_update, - sep, - self._btn_close,   ]   for btn in tbuttons:   self.tbar.insert(btn, -1) @@ -112,9 +105,6 @@
  # show them all   self._refresh()   - def _close_clicked(self, toolbutton, data=None): - self.destroy() -   def _toolbutton(self, stock, label, handler,   menu=None, userdata=None, tip=None):   if menu: