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

repowidget: more tuning of graph load signals

Nothing really needs to happen when the graph is fully loaded any more. If we
add a GUI element later to indicate load status, we can update it to full load.
For now, it does nothing. Also remove arbitrary selection of row 0, which is
always the working directory row, which has a performance hit to select.

Changeset 19c1ba0c199c

Parent 8620f15b7f25

by Steve Borho

Changes to one file · Browse files at 19c1ba0c199c Showing diff from parent 8620f15b7f25 Diff from another changeset...

 
164
165
166
 
167
168
 
 
 
 
 
 
169
170
171
172
173
174
175
176
177
178
179
180
181
182
 
 
183
184
185
 
164
165
166
167
168
 
169
170
171
172
173
174
175
176
177
 
 
 
 
 
 
 
 
 
 
 
178
179
180
181
182
@@ -164,22 +164,19 @@
    def on_filled(self):   'initial batch of revisions loaded' + self._repodate = self._getrepomtime()   self.repoview.resizeColumns() - self.loaded() + if self._reload_rev is not None: + try: + self.repoview.goto(self._reload_rev) + self.revDetailsWidget.on_filled() + except IndexError: + pass     def loaded(self):   'all revisions loaded (graph generator completed)' - self._repodate = self._getrepomtime() - tv = self.repoview - if self._reload_rev is not None: - try: - tv.goto(self._reload_rev) - self.revDetailsWidget.on_filled() - return - except IndexError: - pass - else: - tv.setCurrentIndex(tv.model().index(0, 0)) + # Perhaps we can update a GUI element later, to indicate full load + pass     def revision_activated(self, rev=None):   if rev is None: