Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0.1, 1.0.2, and 1.0.3

stable guess: catch null data model

It's not clear how this can happen, from reviewing the code, but this simple
workaround is harmless.

Closes #1040

Changeset 3e78aa6a5ea8

Parent 4868fa6c862e

by Steve Borho

Changes to one file · Browse files at 3e78aa6a5ea8 Showing diff from parent 4868fa6c862e Diff from another changeset...

 
307
308
309
310
 
311
312
 
 
313
314
315
 
307
308
309
 
310
311
 
312
313
314
315
316
@@ -307,9 +307,10 @@
    def search_wait(self, thread, q):   canmodel = self.cantree.get_model() - while q.qsize(): + while canmodel and q.qsize():   source, dest, sim = q.get(0) - canmodel.append( [source, hglib.toutf(source), dest, hglib.toutf(dest), sim, True] ) + canmodel.append( [source, hglib.toutf(source), dest, + hglib.toutf(dest), sim, True] )   if thread.isAlive():   return True   else: