Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

hgqt/shellconf: add and use PROMOTEDITEMS global

Changeset 2ec140ae63d5

Parent 8d3dec2ffea8

by Adrian Buehlmann

Changes to one file · Browse files at 2ec140ae63d5 Showing diff from parent 8d3dec2ffea8 Diff from another changeset...

 
19
20
21
 
22
23
24
 
45
46
47
48
 
49
50
51
 
194
195
196
197
 
198
199
200
 
225
226
227
228
 
229
230
231
 
19
20
21
22
23
24
25
 
46
47
48
 
49
50
51
52
 
195
196
197
 
198
199
200
201
 
226
227
228
 
229
230
231
232
@@ -19,6 +19,7 @@
   THGKEY = 'TortoiseHg'  OVLKEY = 'TortoiseOverlays' +PROMOTEDITEMS = 'PromotedItems'    # reading functions  def is_true(x): return x in ('1', 'True') @@ -45,7 +46,7 @@
  [True, THGKEY, REG_SZ, is_true, one_str, 'show_taskbaricon'],   'HighlightTaskbarIcon':   [True, THGKEY, REG_SZ, is_true, one_str, 'highlight_taskbaricon'], - 'PromotedItems': + PROMOTEDITEMS:   ['commit', THGKEY, REG_SZ, noop, noop, None],   'ShowUnversionedOverlay':   [True, OVLKEY, REG_DWORD, nonzero, one_int, 'enableUnversionedHandler'], @@ -194,7 +195,7 @@
  checkbutton = getattr(self, cbattr)   checkbutton.setChecked(vars[name][0])   - promoteditems = vars['PromotedItems'][0] + promoteditems = vars[PROMOTEDITEMS][0]   self.set_menulists(promoteditems)     self.dirty = False @@ -225,7 +226,7 @@
  promoted.append(cmd)     hkey = CreateKey(HKEY_CURRENT_USER, "Software\\" + THGKEY) - SetValueEx(hkey, 'PromotedItems', 0, REG_SZ, ','.join(promoted)) + SetValueEx(hkey, PROMOTEDITEMS, 0, REG_SZ, ','.join(promoted))     for name, info in vars.iteritems():   default, regkey, regtype, evalfunc, wrfunc, cbattr = info