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

thgconfig: fix registry writes

Changeset 17a7c044d90a

Parent e7a5e84955a3

by Steve Borho

Changes to one file · Browse files at 17a7c044d90a Showing diff from parent e7a5e84955a3 Diff from another changeset...

 
618
619
620
621
 
622
623
624
625
626
627
628
629
630
 
 
 
 
 
 
 
 
631
632
633
 
618
619
620
 
621
622
 
 
 
 
 
 
 
 
623
624
625
626
627
628
629
630
631
632
633
@@ -618,16 +618,16 @@
  if check.get_active():   promoted.append(cmd)   try: - from _winreg import HKEY_CURRENT_USER, CreateKey, SetValue + from _winreg import HKEY_CURRENT_USER, CreateKey, SetValueEx, REG_SZ   hkey = CreateKey(HKEY_CURRENT_USER, r"Software\TortoiseHg") - SetValue(hkey, 'ShellApps', shellapps) - SetValue(hkey, 'EnableOverlays', overlayenable) - SetValue(hkey, 'LocalDisksOnly', localdisks) - SetValue(hkey, 'OverlayDebug', overlaydebug) - SetValue(hkey, 'IncludePath', includepath) - SetValue(hkey, 'ExcludePath', excludepath) - SetValue(hkey, 'ContextMenuDebug', cmenudebug) - SetValue(hkey, 'PromotedItems', ','.join(promoted)) + SetValueEx(hkey, 'ShellApps', 0, REG_SZ, shellapps) + SetValueEx(hkey, 'EnableOverlays', 0, REG_SZ, overlayenable) + SetValueEx(hkey, 'LocalDisksOnly', 0, REG_SZ, localdisks) + SetValueEx(hkey, 'OverlayDebug', 0, REG_SZ, overlaydebug) + SetValueEx(hkey, 'IncludePath', 0, REG_SZ, includepath) + SetValueEx(hkey, 'ExcludePath', 0, REG_SZ, excludepath) + SetValueEx(hkey, 'ContextMenuDebug', 0, REG_SZ, cmenudebug) + SetValueEx(hkey, 'PromotedItems', 0, REG_SZ, ','.join(promoted))   except ImportError:   pass