# HG changeset patch
# User Simon Heimberg <[email protected]>
# Date 1242249089 -7200
# Node ID 23f8d4687e82d60ae100e62131a21b49cd9bdd62
# Parent bad5d203d3811dae4e5767530ca0efaa8a34c7dd
datamine: allow termination while loading annotate lines
diff -r bad5d203d381 -r 23f8d4687e82 hggtk/datamine.py
--- a/hggtk/datamine.py Mit Mai 13 23:09:40 2009 +0200
+++ b/hggtk/datamine.py Mit Mai 13 23:11:29 2009 +0200
@@ -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)
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop