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

thgconfig: remove shellext debugging options

Debugging will be hard-coded on or off in the final release

Changeset d2fc31ed72d9

Parent 6819f7204ee6

by Steve Borho

Changes to one file · Browse files at d2fc31ed72d9 Showing diff from parent 6819f7204ee6 Diff from another changeset...

 
653
654
655
656
657
658
659
660
 
691
692
693
694
695
696
697
698
699
 
719
720
721
722
723
724
725
726
727
728
729
 
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
 
762
763
764
765
766
767
768
769
770
771
772
773
774
775
 
777
778
779
780
781
782
783
784
785
786
 
788
789
790
791
792
793
794
795
796
797
 
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
 
653
654
655
 
 
656
657
658
 
689
690
691
 
 
 
692
693
694
 
714
715
716
 
 
 
 
 
717
718
719
 
729
730
731
 
 
 
 
 
732
733
734
735
736
737
 
738
 
739
740
741
 
745
746
747
 
 
748
749
750
751
 
 
752
753
754
 
756
757
758
 
759
760
 
761
762
763
 
765
766
767
 
768
769
 
770
771
772
 
776
777
778
 
779
780
 
781
782
783
784
785
786
 
787
788
789
@@ -653,8 +653,6 @@
  self.ovenable.connect('toggled', self.ovenable_toggled)   self.lclonly = gtk.CheckButton(_('Local disks only'))   hbox.pack_start(self.lclonly, False, False, 2) - self.ovdebug = gtk.CheckButton(_('Enable debug logging')) - hbox.pack_start(self.ovdebug, False, False, 2)   table = gtk.Table(2, 2, False)   ovcvbox.pack_start(table, False, False, 2)   @@ -691,9 +689,6 @@
  vbox.pack_start(gtk.Label(), True, True, 2)   vbox.pack_start(descframe, False, False, 2)   - self.cmdebug = gtk.CheckButton(_('Enable debug logging')) - cmcvbox.pack_start(self.cmdebug, False, False, 2) -   lbl = gtk.Label(_('Promote menu items to the top menu'))   cmcvbox.pack_start(lbl, False, False, 2)   @@ -719,11 +714,6 @@
  self.lclonly.connect('toggled', self.dirty_event)   self.lclonly.connect('focus-in-event', self.set_help,   desctext.get_buffer(), tooltip) - tooltip = _('Enable the overlay code to emit debug messages' - ' that the TortoiseHg tracelog application can receive.') - self.ovdebug.connect('toggled', self.dirty_event) - self.ovdebug.connect('focus-in-event', self.set_help, - desctext.get_buffer(), tooltip)   tooltip = _('A list of semicolon (;) separated paths that the'   ' overlays will respect. This include filter is applied'   ' after the local disk check. If unspecified, the default' @@ -739,20 +729,13 @@
  self.ovexclude.connect('changed', self.dirty_event)   self.ovexclude.connect('focus-in-event', self.set_help,   desctext.get_buffer(), tooltip) - tooltip = _('Enable the context menu code to emit debug messages' - ' that the TortoiseHg tracelog application can receive.') - self.cmdebug.connect('toggled', self.dirty_event) - self.cmdebug.connect('focus-in-event', self.set_help, - desctext.get_buffer(), tooltip)   self.load_shell_configs()     def load_shell_configs(self):   includepath = ''   excludepath = ''   overlayenable = True - overlaydebug = False   localdisks = False - cmenudebug = False   promoteditems = 'commit'   try:   from _winreg import HKEY_CURRENT_USER, OpenKey, QueryValueEx @@ -762,14 +745,10 @@
  except EnvironmentError: pass   try: localdisks = QueryValueEx(hkey, 'LocalDisksOnly')[0] in t   except EnvironmentError: pass - try: overlaydebug = QueryValueEx(hkey, 'OverlayDebug')[0] in t - except EnvironmentError: pass   try: includepath = QueryValueEx(hkey, 'IncludePath')[0]   except EnvironmentError: pass   try: excludepath = QueryValueEx(hkey, 'ExcludePath')[0]   except EnvironmentError: pass - try: cmenudebug = QueryValueEx(hkey, 'ContextMenuDebug')[0] in t - except EnvironmentError: pass   try: promoteditems = QueryValueEx(hkey, 'PromotedItems')[0]   except EnvironmentError: pass   except (ImportError, WindowsError): @@ -777,10 +756,8 @@
    self.ovenable.set_active(overlayenable)   self.lclonly.set_active(localdisks) - self.ovdebug.set_active(overlaydebug)   self.ovinclude.set_text(includepath)   self.ovexclude.set_text(excludepath) - self.cmdebug.set_active(cmenudebug)   promoted = [pi.strip() for pi in promoteditems.split(',')]   for cmd, check in self.cmptoggles.iteritems():   check.set_active(cmd in promoted) @@ -788,10 +765,8 @@
  def save_shell_configs(self):   overlayenable = self.ovenable.get_active() and '1' or '0'   localdisks = self.lclonly.get_active() and '1' or '0' - overlaydebug = self.ovdebug.get_active() and '1' or '0'   includepath = self.ovinclude.get_text()   excludepath = self.ovexclude.get_text() - cmenudebug = self.cmdebug.get_active() and '1' or '0'   promoted = []   for cmd, check in self.cmptoggles.iteritems():   if check.get_active(): @@ -801,17 +776,14 @@
  hkey = CreateKey(HKEY_CURRENT_USER, r"Software\TortoiseHg")   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     def ovenable_toggled(self, check):   self.lclonly.set_sensitive(check.get_active()) - self.ovdebug.set_sensitive(check.get_active())   self.ovinclude.set_sensitive(check.get_active())   self.ovexclude.set_sensitive(check.get_active())   self.dirty_event()