configitems: gather comment related to 'worker.backgroundclosemaxqueue'
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 05 Jul 2017 00:01:30 +0200
changeset 33234 b62d13506860
parent 33233 c9849bec227a
child 33235 b838e857439d
configitems: gather comment related to 'worker.backgroundclosemaxqueue' Thanks to Yuya for pointing this out.
mercurial/configitems.py
mercurial/vfs.py
--- a/mercurial/configitems.py	Fri Jun 30 03:46:01 2017 +0200
+++ b/mercurial/configitems.py	Wed Jul 05 00:01:30 2017 +0200
@@ -155,6 +155,8 @@
 coreconfigitem('ui', 'quiet',
     default=False,
 )
+# Windows defaults to a limit of 512 open files. A buffer of 128
+# should give us enough headway.
 coreconfigitem('worker', 'backgroundclosemaxqueue',
     default=384,
 )
--- a/mercurial/vfs.py	Fri Jun 30 03:46:01 2017 +0200
+++ b/mercurial/vfs.py	Wed Jul 05 00:01:30 2017 +0200
@@ -547,8 +547,6 @@
         if expectedcount > 0 and expectedcount < minfilecount:
             return
 
-        # Windows defaults to a limit of 512 open files. A buffer of 128
-        # should give us enough headway.
         maxqueue = ui.configint('worker', 'backgroundclosemaxqueue')
         threadcount = ui.configint('worker', 'backgroundclosethreadcount')