mercurial/vfs.py
changeset 34645 75979c8d4572
parent 34022 d5b2beca16c0
child 35426 60f2a215faa7
equal deleted inserted replaced
34644:c0a6c19690ff 34645:75979c8d4572
   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