Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable changeset: clear check button before it determines current parent

Changeset 6b07d602357a

Parent 1037a39a6f41

by Yuki KODAMA

Changes to one file · Browse files at 6b07d602357a Showing diff from parent 1037a39a6f41 Diff from another changeset...

 
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
 
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
@@ -90,27 +90,35 @@
  title = self.get_title()   if parents:   if len(parents) == 2: + # deferred adding of parent check button   if not self.parent_button.parent:   self.parent_box.pack_start(gtk.HSeparator(), False, False)   self.parent_box.pack_start(self.parent_button, False, False)   self.parent_box.show_all() + + # show parent box   self.parent_box.show() + + # uncheck the check button + if rev != oldrev: + self.parent_button.handler_block_by_func( + self.parent_toggled) + self.parent_button.set_active(False) + self.parent_button.handler_unblock_by_func( + self.parent_toggled) + + # determine title and current parent   if self.diff_other_parent():   title += ':' + str(parents[1].rev())   parent = parents[1].node()   else:   title += ':' + str(parents[0].rev())   parent = parents[0].node() - if rev != oldrev: - # uncheck the check button - self.parent_button.handler_block_by_func( - self.parent_toggled) - self.parent_button.set_active(False) - self.parent_button.handler_unblock_by_func( - self.parent_toggled) +   # clear cache for highlighting parent correctly   self.clear_cache()   else: + # hide parent box   self.parent_box.hide()   parent = parents[0].node()   else: