equal
deleted
inserted
replaced
541 self._threads = [] |
541 self._threads = [] |
542 self._threadexception = None |
542 self._threadexception = None |
543 |
543 |
544 # Only Windows/NTFS has slow file closing. So only enable by default |
544 # Only Windows/NTFS has slow file closing. So only enable by default |
545 # on that platform. But allow to be enabled elsewhere for testing. |
545 # on that platform. But allow to be enabled elsewhere for testing. |
546 defaultenabled = pycompat.osname == 'nt' |
546 defaultenabled = pycompat.iswindows |
547 enabled = ui.configbool('worker', 'backgroundclose', defaultenabled) |
547 enabled = ui.configbool('worker', 'backgroundclose', defaultenabled) |
548 |
548 |
549 if not enabled: |
549 if not enabled: |
550 return |
550 return |
551 |
551 |