fix: allow debugtype 'thread' from command line
commit f7e9d95
[Imply single-threaded mode with -d(ebug) command line option]
was broken. It pretends to imply singlethreading each time _unless_ user
explicitly asks for the debug 'thread' option.
Change the "force singlethreading" check from
(force single threading if last column is true)
+------------------------------------------+----------------+
| | |
+---------------------------------+ | |
|((SINGLETHREADING THREAD_MODE) | "AND") | "NOT" |
+------------------+--------------+--------+----------------+
| True | True | True | False (wrong) |
+------------------+--------------+--------+----------------+
| True | False | False | True |
+------------------+--------------+--------+----------------+
| False | True | False | True (wrong) |
+------------------+--------------+--------+----------------+
| False | False | False | True |
+------------------------------------------+----------------+
To the correct one
+--------------------------------------------------+-------+
| | |
+-----------------------------------------+ | |
|(("NOT" SINGLETHREADING THREAD_MODE) | "AND") | "NOT" |
+-------------------------+---------------+--------+-------+
| False | True | False | True |
+-------------------------+---------------+--------+-------+
| False | False | False | True |
+-------------------------+---------------+--------+-------+
| True | True | True | False |
+-------------------------+---------------+--------+-------+
| True | False | False | True |
+-------------------------+---------------+----------------+
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
21875852eb
commit
41c21f5a9f
@ -218,7 +218,7 @@ class OfflineImap:
|
|||||||
options.debugtype = 'imap,maildir,thread'
|
options.debugtype = 'imap,maildir,thread'
|
||||||
#force single threading?
|
#force single threading?
|
||||||
if not ('thread' in options.debugtype.split(',') \
|
if not ('thread' in options.debugtype.split(',') \
|
||||||
and options.singlethreading):
|
and not options.singlethreading):
|
||||||
ui._msg("Debug mode: Forcing to singlethreaded.")
|
ui._msg("Debug mode: Forcing to singlethreaded.")
|
||||||
options.singlethreading = True
|
options.singlethreading = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user