Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.1, 0.8.2, and 0.8.3

hggtk,thgutil: clarify licenses

Make license explicitly GPL2, required for interfacing with Mercurial source
Remove legally meaningless and semantically redundant (C)
List only first year the copyright is valid, the only useful date

Changeset c55f3b963ead

Parent df219753eb05

by Steve Borho

Changes to 45 files · Browse files at c55f3b963ead Showing diff from parent df219753eb05 Diff from another changeset...

 
1
2
3
 
4
5
6
7
8
9
10
 
 
11
12
13
 
1
2
 
3
4
 
 
 
 
 
 
5
6
7
8
9
@@ -1,13 +1,9 @@
 # TortoiseHg plugin for Nautilus  # -# Copyright (C) 2007-9 Steve Borho +# Copyright 2007 Steve Borho  # -# Stolen mercilessly from nautilus-bzr, thanks guys -# Copyright (C) 2006 Jeff Bailey -# Copyright (C) 2006 Wouter van Heyst -# Copyright (C) 2006 Jelmer Vernooij -# -# Published under the GNU GPL +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gtk  import gobject
Change 1 of 1 Show Entire File hggtk/​about.py Stacked
 
 
1
2
 
 
3
4
5
 
 
6
7
8
 
1
2
 
3
4
5
 
 
6
7
8
9
10
@@ -1,8 +1,10 @@
+# about.py - TortoiseHg About dialog  # -# TortoiseHg About dialog +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # -# Copyright (C) 2007-9 TK Soh <teekaysoh@gmail.com> -# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import sys
Change 1 of 1 Show Entire File hggtk/​backout.py Stacked
 
1
2
3
4
5
 
 
6
 
 
7
8
9
 
 
1
2
 
 
3
4
5
6
7
8
9
10
@@ -1,9 +1,10 @@
-#  # backout.py - TortoiseHg's dialog for backing out changeset  # -# Copyright (C) 2008 Steve Borho <steve@borho.org> -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2008 TK Soh <teekaysoh@gmail.com> +# Copyright 2008 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gtk  import gobject
 
1
2
3
4
 
5
 
 
6
7
8
 
 
1
2
 
3
4
5
6
7
8
9
@@ -1,8 +1,9 @@
-#  # bugreport.py - Bug report dialog for TortoiseHg  # -# Copyright (C) 2009 Steve Borho <steve@borho.org> +# Copyright 2009 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import gtk
 
1
2
3
4
5
 
 
6
7
8
 
 
1
2
3
4
5
6
7
8
9
@@ -1,8 +1,9 @@
-#  # changeset.py - Changeset dialog for TortoiseHg  #  # Copyright 2008 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import gtk
Change 1 of 1 Show Entire File hggtk/​clone.py Stacked
 
 
1
2
 
 
3
4
5
 
 
6
7
8
 
1
2
 
3
4
5
 
 
6
7
8
9
10
@@ -1,8 +1,10 @@
+# clone.py - Clone dialog for TortoiseHg  # -# TortoiseHg dialog to clone a repo +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> -# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gtk  import os
Change 1 of 1 Show Entire File hggtk/​commit.py Stacked
 
1
2
 
3
4
5
6
 
 
7
 
 
8
9
10
 
 
 
1
2
3
 
 
4
5
6
7
8
9
10
11
@@ -1,10 +1,11 @@
-# -# commit.py - commit dialog for TortoiseHg +# commit.py - Commit dialog for TortoiseHg  #  # Copyright 2007 Brad Schick, brad at gmail . com -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> -# Copyright (C) 2009 Steve Borho <steve@borho.org> +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import errno
Change 1 of 1 Show Entire File hggtk/​datamine.py Stacked
 
 
1
2
 
3
4
 
 
5
6
7
 
1
2
 
3
4
 
5
6
7
8
9
@@ -1,7 +1,9 @@
+# datamine.py - Data Mining dialog for TortoiseHg  # -# Data Mining dialog for TortoiseHg and Mercurial +# Copyright 2008 Steve Borho <steve@borho.org>  # -# Copyright (C) 2008 Steve Borho <steve@borho.org> +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gtk  import gobject
Change 1 of 1 Show Entire File hggtk/​gdialog.py Stacked
 
1
2
3
 
4
5
6
7
 
 
8
9
10
 
1
2
3
4
5
 
 
 
6
7
8
9
10
@@ -1,10 +1,10 @@
 # gdialog.py - base dialog for gtools  #  # Copyright 2007 Brad Schick, brad at gmail . com +# Copyright 2008 Steve Borho <steve@borho.org>  # -# This software may be used and distributed according to the terms -# of the GNU General Public License, incorporated herein by reference. -# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import threading
Change 1 of 1 Show Entire File hggtk/​gtklib.py Stacked
 
 
1
2
 
 
3
4
5
 
 
6
7
8
 
1
2
 
3
4
5
 
 
6
7
8
9
10
@@ -1,8 +1,10 @@
+# gtklib.py - miscellaneous PyGTK classes and functions for TortoiseHg  # -# miscellaneous PyGTK classes and functions for TortoiseHg +# Copyright 2008 TK Soh <teekaysoh@gmail.com> +# Copyright 2009 Steve Borho <steve@borho.org>  # -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> -# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import sys
Change 1 of 1 Show Entire File hggtk/​guess.py Stacked
 
1
2
3
4
 
5
 
 
6
7
8
 
 
1
2
 
3
4
5
6
7
8
9
@@ -1,8 +1,9 @@
-#  # guess.py - TortoiseHg's dialogs for detecting copies and renames  # -# Copyright (C) 2009 Steve Borho <steve@borho.org> +# Copyright 2009 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import sys
Change 1 of 1 Show Entire File hggtk/​hgcmd.py Stacked
 
 
1
2
 
 
3
4
5
 
 
6
7
8
 
1
2
 
3
4
5
 
 
6
7
8
9
10
@@ -1,8 +1,10 @@
+# hgcmd.py - A simple dialog to execute random command for TortoiseHg  # -# A simple dialog to execute random command for TortoiseHg +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> -# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gtk  import gobject
Change 1 of 1 Show Entire File hggtk/​hgemail.py Stacked
 
1
2
3
4
5
 
 
6
 
 
7
8
9
 
 
1
2
 
 
3
4
5
6
7
8
9
10
@@ -1,9 +1,10 @@
-#  # hgemail.py - TortoiseHg's dialog for sending patches via email  # -# Copyright (C) 2007 Steve Borho <steve@borho.org> -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import sys
Change 1 of 1 Show Entire File hggtk/​hgignore.py Stacked
 
1
2
3
4
 
5
 
 
6
7
8
 
 
1
2
 
3
4
5
6
7
8
9
@@ -1,8 +1,9 @@
-#  # hgignore.py - TortoiseHg's dialog for editing .hgignore  # -# Copyright (C) 2008-2009 Steve Borho <steve@borho.org> +# Copyright 2008 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import gtk
Change 1 of 1 Show Entire File hggtk/​hginit.py Stacked
 
 
1
2
 
3
4
5
 
 
6
7
8
 
1
2
 
3
4
 
 
5
6
7
8
9
@@ -1,8 +1,9 @@
+# hginit.py - TortoiseHg dialog to initialize a repo  # -# TortoiseHg dialog to initialize a repo +# Copyright 2008 Steve Borho <steve@borho.org>  # -# Copyright (C) 2008 TK Soh <teekaysoh@gmail.com> -# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import gtk
Change 1 of 1 Show Entire File hggtk/​hgshelve.py Stacked
 
1
 
2
3
4
 
5
6
7
 
 
8
9
10
 
 
1
2
3
4
5
6
 
 
7
8
9
10
11
@@ -1,10 +1,11 @@
-# shelve.py +# hgshelve.py - TortoiseHg dialog to initialize a repo  #  # Copyright 2007 Bryan O'Sullivan <bos@serpentine.com>  # Copyright 2007 TK Soh <teekaysoh@gmailcom> +# Copyright 2009 Steve Borho <steve@borho.org>  # -# This software may be used and distributed according to the terms of -# the GNU General Public License, incorporated herein by reference. +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    '''interactive change selection to set aside that may be restored later'''  
Change 1 of 1 Show Entire File hggtk/​hgthread.py Stacked
 
 
1
2
 
3
4
5
 
 
6
7
8
 
1
2
 
3
4
 
 
5
6
7
8
9
@@ -1,8 +1,9 @@
+# hgthread.py - Gtk UI class TortoiseHg  # -# Gtk UI class TortoiseHg +# Copyright 2009 Steve Borho <steve@borho.org>  # -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> -# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gtk  import Queue
Change 1 of 1 Show Entire File hggtk/​hgtk.py Stacked
 
1
 
2
3
 
 
4
5
6
 
 
7
8
9
 
 
1
2
 
3
4
5
 
 
6
7
8
9
10
@@ -1,9 +1,10 @@
-#!/usr/bin/env python +# hgtk.py - front-end script for TortoiseHg dialogs  # -# front-end script for TortoiseHg dialogs +# Copyright 2008 Steve Borho <steve@borho.org> +# Copyright 2008 TK Soh <teekaysoh@gmail.com>  # -# Copyright (C) 2008-9 Steve Borho <steve@borho.org> -# Copyright (C) 2008 TK Soh <teekaysoh@gmail.com> +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    shortlicense = '''  Copyright (C) 2009 Steve Borho <steve@borho.org>.
Change 1 of 1 Show Entire File hggtk/​history.py Stacked
 
1
2
3
4
5
 
6
 
 
7
8
9
 
 
1
2
3
 
4
5
6
7
8
9
10
@@ -1,9 +1,10 @@
-#  # history.py - Changelog dialog for TortoiseHg  #  # Copyright 2007 Brad Schick, brad at gmail . com -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2008 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import gtk
 
1
2
3
4
 
 
5
 
 
6
7
8
 
 
1
2
 
3
4
5
6
7
8
9
10
@@ -1,8 +1,10 @@
-#  # logfilter.py - TortoiseHg's dialog for defining log filter criteria  # -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import gtk
 
 
 
 
 
 
 
 
1
2
3
 
1
2
3
4
5
6
7
8
9
10
@@ -1,3 +1,10 @@
+# treemodel.py - changelog viewer data model +# +# Copyright 2008 Steve Borho <steve@borho.org> +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference. +  ''' Mercurial revision DAG visualization library     Implements a gtk.TreeModel which visualizes a Mercurial repository
 
 
 
 
 
 
 
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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
+# treeview.py - changelog viewer implementation +# +# Copyright 2008 Steve Borho <steve@borho.org> +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference. +  ''' Mercurial revision DAG visualization library     Implements a gtk.TreeModel which visualizes a Mercurial repository   revision history.    Portions of this code stolen mercilessly from bzr-gtk visualization  dialog. Other portions stolen from graphlog extension.  '''    import gtk  import gobject  import pango  import re    from mercurial.node import hex    from thgutil.i18n import _  from thgutil import hglib    from hggtk.logview import treemodel  from hggtk.logview.graphcell import CellRendererGraph  from hggtk.logview.revgraph import *      class TreeView(gtk.ScrolledWindow):     __gproperties__ = {   'repo': (gobject.TYPE_PYOBJECT,   'Repository',   'The Mercurial repository being visualized',   gobject.PARAM_CONSTRUCT_ONLY | gobject.PARAM_WRITABLE),     'limit': (gobject.TYPE_PYOBJECT,   'Revision Display Limit',   'The maximum number of revisions to display',   gobject.PARAM_READWRITE),     'original-tip-revision': (gobject.TYPE_PYOBJECT,   'Tip revision when application opened',   'Revisions above this number will be drawn green',   gobject.PARAM_READWRITE),     'revision': (gobject.TYPE_PYOBJECT,   'Revision',   'The currently selected revision',   gobject.PARAM_READWRITE),     'revision-number': (gobject.TYPE_STRING,   'Revision number',   'The number of the selected revision',   '',   gobject.PARAM_READABLE),     'date-column-visible': (gobject.TYPE_BOOLEAN,   'Date',   'Show date column',   False,   gobject.PARAM_READWRITE),   'utc-column-visible': (gobject.TYPE_BOOLEAN,   'UTC',   'Show UTC/GMT date column',   False,   gobject.PARAM_READWRITE),   'rev-column-visible': (gobject.TYPE_BOOLEAN,   'Rev',   'Show revision number column',   False,   gobject.PARAM_READWRITE),   'id-column-visible': (gobject.TYPE_BOOLEAN,   'Tags',   'Show revision ID column',   False,   gobject.PARAM_READWRITE),     'branch-column-visible': (gobject.TYPE_BOOLEAN,   'Branch',   'Show branch',   False,   gobject.PARAM_READWRITE),   }     __gsignals__ = {   'revisions-loaded': (gobject.SIGNAL_RUN_FIRST,   gobject.TYPE_NONE,   ()),   'revision-selected': (gobject.SIGNAL_RUN_FIRST,   gobject.TYPE_NONE,   ())   }     def __init__(self, repo, limit=500, pbar=None):   """Create a new TreeView.     :param repo: Repository object to show   """   gtk.ScrolledWindow.__init__(self)     self.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)   self.set_shadow_type(gtk.SHADOW_IN)     self.batchsize = limit   self.repo = repo   self.currev = None   self.construct_treeview()   self.pbar = pbar   self.origtip = None     def set_repo(self, repo, pbar=None):   self.repo = repo   self.pbar = pbar   self.set_author_color()     def search_in_tree(self, model, column, key, iter, data):   """Searches all fields shown in the tree when the user hits crtr+f,   not just the ones that are set via tree.set_search_column.   Case insensitive   """   key = key.lower()     node = hex(model.get_value(iter, treemodel.REVISION)[treemodel.NODE])   if node.startswith(key):   return False     for col in (treemodel.REVID, treemodel.TAGS, treemodel.COMMITER,   treemodel.MESSAGE):   if key in model.get_value(iter, col).lower():   return False   return True     def create_log_generator(self, graphcol, pats, opts):   if self.repo is None:   self.grapher = None   return     if 'filehist' in opts:   self.grapher = filelog_grapher(self.repo, opts['filehist'])   elif graphcol:   end = 0   if pats is not None: # branch name   b = self.repo.branchtags()   if pats in b:   node = b[pats]   start = self.repo.changelog.rev(node)   else:   start = len(self.repo.changelog) - 1   elif opts['revrange']:   if len(opts['revrange']) >= 2:   start, end = opts['revrange']   else:   start = opts['revrange'][0]   end = start   else:   start = len(self.repo.changelog) - 1   noheads = opts.get('noheads', False)   self.grapher = revision_grapher(self.repo, start, end, pats,   noheads)   elif opts.get('revs', None):   self.grapher = dumb_log_generator(self.repo, opts['revs'])   else:   self.grapher = filtered_log_generator(self.repo, pats, opts)   self.show_graph = graphcol   self.graphdata = []   self.index = {}   self.max_cols = 1   self.model = None   self.limit = self.batchsize     def populate(self, revision=None):   """Fill the treeview with contents.   """   stopped = False   if self.repo is None:   stopped = True   return False     try:   for x in xrange(0, 50):   (rev, node, lines, parents) = self.grapher.next()   self.max_cols = max(self.max_cols, len(lines))   self.index[rev] = len(self.graphdata)   self.graphdata.append( (rev, node, lines, parents) )   if self.model:   rowref = self.model.get_iter(len(self.graphdata)-1)   path = self.model.get_path(rowref)   self.model.row_inserted(path, rowref)   if self.limit and len(self.graphdata) >= self.limit:   break   except StopIteration:   stopped = True     if stopped:   pass   elif self.limit is None:   return True   elif len(self.graphdata) < self.limit:   return True     if not len(self.graphdata):   self.treeview.set_model(None)   if self.pbar is not None:   self.pbar.end()   self.emit('revisions-loaded')   return False     if not self.model:   self.model = treemodel.TreeModel(self.repo, self.graphdata,   self.color_func)   self.treeview.set_model(self.model)     self.graph_cell.columns_len = self.max_cols   width = self.graph_cell.get_size(self.treeview)[2]   if width > 500:   width = 500   self.graph_column.set_fixed_width(width)   self.graph_column.set_max_width(width)   self.graph_column.set_visible(self.show_graph)     if stopped:   self.emit('revisions-loaded')   if revision is not None:   self.set_revision_id(revision[treemodel.REVID])   if self.pbar is not None:   self.pbar.end()   return False     def do_get_property(self, property):   if property.name == 'date-column-visible':   return self.date_column.get_visible()   elif property.name == 'id-column-visible':   return self.id_column.get_visible()   elif property.name == 'rev-column-visible':   return self.rev_column.get_visible()   elif property.name == 'branch-column-visible':   return self.branch_column.get_visible()   elif property.name == 'utc-column-visible':   return self.utc_column.get_visible()   elif property.name == 'repo':   return self.repo   elif property.name == 'limit':   return self.limit   elif property.name == 'revision':   return self.currev   elif property.name == 'original-tip-revision':   return self.origtip   else:   raise AttributeError, 'unknown property %s' % property.name     def do_set_property(self, property, value):   if property.name == 'date-column-visible':   self.date_column.set_visible(value)   elif property.name == 'id-column-visible':   self.id_column.set_visible(value)   elif property.name == 'rev-column-visible':   self.rev_column.set_visible(value)   elif property.name == 'branch-column-visible':   self.branch_column.set_visible(value)   elif property.name == 'utc-column-visible':   self.utc_column.set_visible(value)   elif property.name == 'repo':   self.repo = value   elif property.name == 'limit':   self.batchsize = value   elif property.name == 'revision':   self.set_revision_id(value)   elif property.name == 'original-tip-revision':   self.origtip = value   else:   raise AttributeError, 'unknown property %s' % property.name     def next_revision_batch(self, size):   self.batchsize = size   self.limit += self.batchsize   if self.pbar is not None:   self.pbar.begin()   gobject.idle_add(self.populate)     def load_all_revisions(self):   self.limit = None   if self.pbar is not None:   self.pbar.begin()   gobject.idle_add(self.populate)     def get_revision(self):   """Return revision id of currently selected revision, or None."""   return self.get_property('revision')     def scroll_to_revision(self, revid):   if revid in self.index:   row = self.index[revid]   self.treeview.scroll_to_cell(row, use_align=True, row_align=0.5)     def set_revision_id(self, revid):   """Change the currently selected revision.     :param revid: Revision id of revision to display.   """   if revid in self.index:   row = self.index[revid]   self.treeview.set_cursor(row)   self.treeview.grab_focus()     def get_parents(self):   """Return the parents of the currently selected revision.     :return: list of revision ids.   """   return self.get_property('parents')     def refresh(self, graphcol, pats, opts):   if self.repo is not None:   hglib.invalidaterepo(self.repo)   if len(self.repo.changelog) > 0:   self.create_log_generator(graphcol, pats, opts)   if self.pbar is not None:   self.pbar.begin()   gobject.idle_add(self.populate, self.get_revision())   else:   self.treeview.set_model(None)   self.pbar.set_status_text('Repository is empty')     def set_author_color(self):   # If user has configured authorcolor in [tortoisehg], color   # rows by author matches   self.author_pats = []   self.color_func = self.text_color_orig     if self.repo is not None:   for k, v in self.repo.ui.configitems('tortoisehg'):   if not k.startswith('authorcolor.'): continue   pat = k[12:]   self.author_pats.append((re.compile(pat, re.I), v))   if self.author_pats or self.repo.ui.configbool('tortoisehg',   'authorcolor'):   self.color_func = self.text_color_author   else:   self.color_func = self.text_color_orig     def construct_treeview(self):   self.treeview = gtk.TreeView()   self.treeview.set_rules_hint(True)   self.treeview.set_reorderable(False)   self.treeview.set_enable_search(True)   self.treeview.set_search_equal_func(self.search_in_tree, None)   self.set_author_color()     # Fix old PyGTK (<1.12) bug - by JAM   set_tooltip = getattr(self.treeview, 'set_tooltip_column', None)   if set_tooltip is not None:   set_tooltip(treemodel.MESSAGE)     self.treeview.get_selection().set_mode(gtk.SELECTION_SINGLE)   self.treeview.connect("cursor-changed", self._on_selection_changed)   self.treeview.set_property('fixed-height-mode', True)   self.treeview.show()   self.add(self.treeview)     self.graph_cell = CellRendererGraph()   self.graph_column = gtk.TreeViewColumn(_('Graph'))   self.graph_column.set_resizable(True)   self.graph_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)   self.graph_column.pack_start(self.graph_cell, expand=False)   self.graph_column.add_attribute(self.graph_cell,   "node", treemodel.NODE)   self.graph_column.add_attribute(self.graph_cell,   "in-lines", treemodel.LAST_LINES)   self.graph_column.add_attribute(self.graph_cell,   "out-lines", treemodel.LINES)   self.treeview.append_column(self.graph_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 8)   cell.set_property("ellipsize", pango.ELLIPSIZE_END)   self.rev_column = gtk.TreeViewColumn(_('Rev'))   self.rev_column.set_visible(False)   self.rev_column.set_resizable(True)   self.rev_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)   self.rev_column.set_fixed_width(cell.get_size(self.treeview)[2])   self.rev_column.pack_start(cell, expand=True)   self.rev_column.add_attribute(cell, "text", treemodel.REVID)   self.rev_column.add_attribute(cell, "foreground", treemodel.FGCOLOR)   self.treeview.append_column(self.rev_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 15)   cell.set_property("ellipsize", pango.ELLIPSIZE_END)   self.id_column = gtk.TreeViewColumn(_('ID'))   self.id_column.set_visible(False)   self.id_column.set_resizable(True)   self.id_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)   self.id_column.set_fixed_width(cell.get_size(self.treeview)[2])   self.id_column.pack_start(cell, expand=True)   self.id_column.add_attribute(cell, "text", treemodel.HEXID)   self.id_column.add_attribute(cell, "foreground", treemodel.FGCOLOR)   self.treeview.append_column(self.id_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 15)   cell.set_property("ellipsize", pango.ELLIPSIZE_END)   self.branch_column = gtk.TreeViewColumn(_('Branch'))   self.branch_column.set_visible(False)   self.branch_column.set_resizable(True)   self.branch_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)   self.branch_column.set_fixed_width(cell.get_size(self.treeview)[2])   self.branch_column.pack_start(cell, expand=True)   self.branch_column.add_attribute(cell, "foreground", treemodel.FGCOLOR)   self.branch_column.add_attribute(cell, "markup", treemodel.BRANCHES)   self.treeview.append_column(self.branch_column)   cell = gtk.CellRendererText()     cell.set_property("width-chars", 65)   cell.set_property("ellipsize", pango.ELLIPSIZE_END)   self.msg_column = gtk.TreeViewColumn(_('Summary'))   self.msg_column.set_resizable(True)   self.msg_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)   self.msg_column.set_fixed_width(cell.get_size(self.treeview)[2])   self.msg_column.pack_end(cell, expand=True)   self.msg_column.add_attribute(cell, "foreground", treemodel.FGCOLOR)   self.msg_column.add_attribute(cell, "markup", treemodel.MESSAGE)   self.treeview.append_column(self.msg_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 20)   cell.set_property("ellipsize", pango.ELLIPSIZE_END)   self.committer_column = gtk.TreeViewColumn(_('User'))   self.committer_column.set_resizable(True)   self.committer_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)   self.committer_column.set_fixed_width(cell.get_size(self.treeview)[2])   self.committer_column.pack_start(cell, expand=True)   self.committer_column.add_attribute(cell, "text", treemodel.COMMITER)   self.committer_column.add_attribute(cell, "foreground",   treemodel.FGCOLOR)   self.treeview.append_column(self.committer_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 20)   cell.set_property("ellipsize", pango.ELLIPSIZE_END)   self.date_column = gtk.TreeViewColumn(_('Local Date'))   self.date_column.set_visible(False)   self.date_column.set_resizable(True)   self.date_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)   self.date_column.set_fixed_width(cell.get_size(self.treeview)[2])   self.date_column.pack_start(cell, expand=True)   self.date_column.add_attribute(cell, "text", treemodel.TIMESTAMP)   self.date_column.add_attribute(cell, "foreground", treemodel.FGCOLOR)   self.treeview.append_column(self.date_column)     cell = gtk.CellRendererText()   cell.set_property("width-chars", 20)   cell.set_property("ellipsize", pango.ELLIPSIZE_END)   self.utc_column = gtk.TreeViewColumn(_('Universal Date'))   self.utc_column.set_visible(False)   self.utc_column.set_resizable(True)   self.utc_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)   self.utc_column.set_fixed_width(cell.get_size(self.treeview)[2])   self.utc_column.pack_start(cell, expand=True)   self.utc_column.add_attribute(cell, "text", treemodel.UTC)   self.utc_column.add_attribute(cell, "foreground", treemodel.FGCOLOR)   self.treeview.append_column(self.utc_column)     def text_color_orig(self, parents, rev, author):   if self.origtip is not None and int(rev) >= self.origtip:   return 'darkgreen'   if len(parents) == 2:   # mark merge changesets blue   return 'blue'   elif len(parents) == 1:   # detect non-trivial parent   if long(rev) != parents[0]+1:   return '#900000'   else:   return 'black'   else:   return 'black'     colors = '''black blue deeppink mediumorchid blue burlywood4 goldenrod   slateblue red2 navy dimgrey'''.split()   color_cache = {}     def text_color_author(self, parents, rev, author):   if self.origtip is not None and int(rev) >= self.origtip:   return 'darkgreen'   for re, v in self.author_pats:   if (re.search(author)):   return v   if author not in self.color_cache:   color = self.colors[len(self.color_cache.keys()) % len(self.colors)]   self.color_cache[author] = color   return self.color_cache[author]     def _on_selection_changed(self, treeview):   """callback for when the treeview changes."""   (path, focus) = treeview.get_cursor()   if path is not None and self.model is not None:   iter = self.model.get_iter(path)   self.currev = self.model.get_value(iter, treemodel.REVISION)   self.emit('revision-selected')
Change 1 of 1 Show Entire File hggtk/​merge.py Stacked
 
1
2
3
4
 
 
5
 
 
6
7
8
 
 
1
2
 
3
4
5
6
7
8
9
10
@@ -1,8 +1,10 @@
-#  # merge.py - TortoiseHg's dialog for merging revisions  # -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import gtk
Change 1 of 1 Show Entire File hggtk/​recovery.py Stacked
 
 
1
2
 
 
3
4
5
6
 
 
7
8
9
 
1
2
 
3
4
5
 
 
 
6
7
8
9
10
@@ -1,9 +1,10 @@
+# recovery.py - Repository recovery dialog for TortoiseHg  # -# Repository recovery dialog for TortoiseHg +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # -# Copyright (C) 2007 Steve Borho <steve@borho.org> -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> -# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gtk  import gobject
Change 1 of 1 Show Entire File hggtk/​rename.py Stacked
 
1
2
3
4
 
5
 
 
6
7
8
 
 
1
2
 
3
4
5
6
7
8
9
@@ -1,8 +1,9 @@
-#  # rename.py - TortoiseHg's dialogs for handling renames  # -# Copyright (C) 2009 Steve Borho <steve@borho.org> +# Copyright 2009 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import sys  import gtk
Change 1 of 1 Show Entire File hggtk/​serve.py Stacked
 
 
1
2
 
 
3
4
5
6
 
 
7
8
9
 
1
2
 
3
4
5
 
 
 
6
7
8
9
10
@@ -1,9 +1,10 @@
+# serve.py - TortoiseHg dialog to start web server  # -# TortoiseHg dialog to start web server +# Copyright 2007 Steve Borho <steve@borho.org> +# Copyright 2007 TK Soh <teekaysoh@gmail.com>  # -# Copyright (C) 2007 Steve Borho <steve@borho.org> -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> -# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gtk  import gobject
Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
1
2
3
4
5
6
 
 
7
8
 
 
9
10
11
 
 
1
2
3
 
 
4
5
6
 
7
8
9
10
11
@@ -1,11 +1,11 @@
-#  # status.py - status dialog for TortoiseHg  #  # Copyright 2007 Brad Schick, brad at gmail . com -# Copyright (C) 2007-8 TK Soh <teekaysoh@gmail.com> -# Copyright (C) 2008-9 Steve Borho <steve@borho.org> +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2008 Steve Borho <steve@borho.org>  # - +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import cStringIO
Change 1 of 1 Show Entire File hggtk/​synch.py Stacked
 
 
1
2
 
 
3
4
5
6
 
 
7
8
9
 
1
2
 
3
4
5
 
 
 
6
7
8
9
10
@@ -1,9 +1,10 @@
+# synch.py - Repository synchronization dialog for TortoiseHg  # -# Repository synchronization dialog for TortoiseHg +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # -# Copyright (C) 2007 Steve Borho <steve@borho.org> -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> -# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gtk  import gobject
Change 1 of 1 Show Entire File hggtk/​tagadd.py Stacked
 
 
1
2
 
 
3
4
5
 
 
6
7
8
 
1
2
 
3
4
5
 
 
6
7
8
9
10
@@ -1,8 +1,10 @@
+# tagadd.py - TortoiseHg dialog to add tag  # -# TortoiseHg dialog to add tag +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> -# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import gtk
 
1
2
3
4
 
5
 
 
6
7
8
 
 
1
2
 
3
4
5
6
7
8
9
@@ -1,8 +1,9 @@
-#  # taskbarui.py - User interface for the TortoiseHg taskbar app  # -# Copyright (C) 2009 Steve Borho <steve@borho.org> +# Copyright 2009 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import gtk
 
1
2
 
3
4
5
 
6
 
 
7
8
9
 
 
 
1
2
 
 
3
4
5
6
7
8
9
@@ -1,9 +1,9 @@
-#_ -# Configuration dialog for TortoiseHg and Mercurial +# thgconfig.py - Configuration dialog for TortoiseHg and Mercurial  # -# Copyright (C) 2008-9 Steve Borho <steve@borho.org> -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gtk  import os
 
1
2
3
4
5
6
 
 
7
 
 
8
9
10
 
 
1
2
3
 
 
4
5
6
7
8
9
10
11
@@ -1,10 +1,11 @@
-#  # thgshelve.py - commit dialog for TortoiseHg  #  # Copyright 2007 Brad Schick, brad at gmail . com -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> -# Copyright (C) 2009 Steve Borho <steve@borho.org> +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import gtk
 
1
2
3
4
 
5
 
 
6
7
8
 
 
1
2
 
3
4
5
6
7
8
9
@@ -1,8 +1,9 @@
-#  # thgstatus.py - update TortoiseHg status cache  # -# Copyright (C) 2009 Adrian Buehlmann +# Copyright 2009 Adrian Buehlmann  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    '''update TortoiseHg status cache'''  
Change 1 of 1 Show Entire File hggtk/​update.py Stacked
 
1
2
3
4
 
 
5
 
 
6
7
8
 
 
1
2
 
3
4
5
6
7
8
9
10
@@ -1,8 +1,10 @@
-#  # update.py - TortoiseHg's dialog for updating repo  # -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2007 Steve Borho <steve@borho.org>  # +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import gtk
Change 1 of 1 Show Entire File hggtk/​visdiff.py Stacked
 
1
2
3
 
4
5
6
7
8
 
 
9
10
11
 
1
2
 
3
4
 
 
 
 
5
6
7
8
9
@@ -1,11 +1,9 @@
 # visdiff.py - launch external visual diff tools  # -# Copyright 2009 Steve Borho +# Copyright 2009 Steve Borho <steve@borho.org>  # -# Based on extdiff extension for Mercurial -# -# This software may be used and distributed according to the terms -# of the GNU General Public License, incorporated herein by reference. +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gtk  import gobject
 
 
 
 
 
 
 
 
1
2
3
 
1
2
3
4
5
6
7
8
9
10
@@ -1,3 +1,10 @@
+# cachethg.py - overlay/status cache +# +# Copyright 2008 Steve Borho <steve@borho.org> +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference. +  import os  import sys  
 
 
 
 
 
 
 
 
1
2
3
 
1
2
3
4
5
6
7
8
9
10
@@ -1,3 +1,10 @@
+# debugthg.py - debugging library for TortoiseHg shell extensions +# +# Copyright 2008 Steve Borho <steve@borho.org> +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference. +  debugging = ''  try:   import _winreg
Change 1 of 1 Show Entire File thgutil/​hglib.py Stacked
 
1
2
3
4
5
6
7
 
 
 
 
 
 
8
9
10
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
@@ -1,10 +1,9 @@
-""" -hglib.py - Copyright (C) 2007 Steve Borho <steve@borho.org> - -This software may be used and distributed according to the terms -of the GNU General Public License, incorporated herein by reference. -""" +# hglib.py - Mercurial API wrappers for TortoiseHg +# +# Copyright 2007 Steve Borho <steve@borho.org> +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import sys
Change 1 of 1 Show Entire File thgutil/​i18n.py Stacked
 
1
2
3
4
5
6
7
 
 
 
 
 
 
8
9
10
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
@@ -1,10 +1,9 @@
-""" -i18n.py - Copyright (C) 2009 Steve Borho <steve@borho.org> - -This software may be used and distributed according to the terms -of the GNU General Public License, incorporated herein by reference. -""" +# i18n.py - TortoiseHg internationalization code +# +# Copyright 2009 Steve Borho <steve@borho.org> +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import gettext, sys  from gettext import gettext as _
 
1
2
3
4
 
 
 
 
 
 
5
6
7
 
 
 
 
 
1
2
3
4
5
6
7
8
9
@@ -1,7 +1,9 @@
-# Published under the GNU GPL, v2 or later. -# Copyright (C) 2007 Jelmer Vernooij <jelmer@samba.org> -# Copyright (C) 2007 Henry Ludemann <misc@hl.id.au> -# Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> +# menuthg.py - TortoiseHg shell extension menu +# +# Copyright 2009 Steve Borho <steve@borho.org> +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  
Change 1 of 1 Show Entire File thgutil/​paths.py Stacked
 
1
2
3
4
5
6
7
 
 
 
 
 
 
8
9
10
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
@@ -1,10 +1,9 @@
-""" -paths.py - Copyright (C) 2009 Steve Borho <steve@borho.org> - -This software may be used and distributed according to the terms -of the GNU General Public License, incorporated herein by reference. -""" +# paths.py - TortoiseHg path utilities +# +# Copyright 2009 Steve Borho <steve@borho.org> +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    try:   from config import icon_path, bin_path, license_path, locale_path
 
1
2
3
4
5
6
7
 
 
 
 
 
 
 
8
9
10
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
@@ -1,10 +1,10 @@
-""" -settings.py - TortoiseHg dialog settings library - Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> - -This software may be used and distributed according to the terms -of the GNU General Public License, incorporated herein by reference. -""" +# settings.py - TortoiseHg dialog settings library +# +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2009 Steve Borho <steve@borho.org> +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import cPickle
Change 1 of 1 Show Entire File thgutil/​shlib.py Stacked
 
1
2
3
4
5
6
7
 
 
 
 
 
 
 
8
9
10
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
@@ -1,10 +1,10 @@
-""" -shlib.py - TortoiseHg shell utilities - Copyright (C) 2007 TK Soh <teekaysoh@gmail.com> - -This software may be used and distributed according to the terms -of the GNU General Public License, incorporated herein by reference. -""" +# shlib.py - TortoiseHg shell utilities +# +# Copyright 2007 TK Soh <teekaysoh@gmail.com> +# Copyright 2008 Steve Borho <steve@borho.org> +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import os  import sys
 
1
2
3
 
 
 
4
5
6
 
1
2
3
4
5
6
7
8
9
@@ -1,6 +1,9 @@
 # Interuptible threads  #  # http://sebulba.wikispaces.com/recipe+thread2 +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    import threading  import inspect
 
1
2
3
4
5
6
7
 
 
 
 
 
 
8
9
10
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
@@ -1,10 +1,9 @@
-""" -version.py - TortoiseHg version - Copyright (C) 2009 Steve Borho <steve@borho.org> - -This software may be used and distributed according to the terms -of the GNU General Public License, incorporated herein by reference. -""" +# version.py - TortoiseHg version +# +# Copyright 2009 Steve Borho <steve@borho.org> +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2, incorporated herein by reference.    from thgutil.i18n import _