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

gdialog: fix detection of TortoiseHg installation

Changeset 95b14e327e3b

Parent f12429ab970c

by TK Soh

Changes to one file · Browse files at 95b14e327e3b Showing diff from parent f12429ab970c Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​gdialog.py Stacked
 
495
496
497
498
499
500
501
 
 
 
502
503
504
 
495
496
497
 
 
 
 
498
499
500
501
502
503
@@ -495,10 +495,9 @@
  def tortoiseHgIsInstalled(self):   import _winreg   try: - hkey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,r"Software\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\Changed") - if hkey: - cls = _winreg.QueryValue(hkey,"") - return cls == "{102C6A24-5F38-4186-B64A-237011809FAB}" + _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, + r"Software\TortoiseHg") + return True   except WindowsError: #reg key not found   pass   return False