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

datamine: allow termination while loading annotate lines

Changeset ae1d723870ef

Parent 752b864b6520

by Simon Heimberg

Changes to one file · Browse files at ae1d723870ef Showing diff from parent 752b864b6520 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​datamine.py Stacked
 
407
408
409
410
 
411
412
413
 
624
625
626
627
 
628
629
630
 
407
408
409
 
410
411
412
413
 
624
625
626
 
627
628
629
630
@@ -407,7 +407,7 @@
  self._stop_search(frame)     def _stop_search(self, frame): - if hasattr(frame, '_mythread') and frame._mythread: + if getattr(frame, '_mythread', None):   frame._mythread.terminate()   frame._mythread.join()   frame._mythread = None @@ -624,7 +624,7 @@
  q = Queue.Queue()   args = [self.repo.root, q, 'annotate', '--follow', '--number',   '--rev', str(rev), path] - thread = threading.Thread(target=hgcmd_toq, args=args) + thread = thread2.Thread(target=hgcmd_toq, args=args)   thread.start()   frame._mythread = thread   self.stop_button.set_sensitive(True)