[PATCH 3 of 3] dirstate: back out 502b56a9e897

Bryan O'Sullivan bos at serpentine.com
Tue Nov 17 15:48:19 CST 2015


# HG changeset patch
# User Bryan O'Sullivan <bos at serpentine.com>
# Date 1447796836 28800
#      Tue Nov 17 13:47:16 2015 -0800
# Node ID f2ebb38f91de161e3a6470ae9c951def7e569db2
# Parent  f08030866c74e0585d5181344ee508fa63b8753c
dirstate: back out 502b56a9e897

Superseded by the parent of this commit.

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -1003,14 +1003,8 @@ class dirstate(object):
                 # We may not have walked the full directory tree above,
                 # so stat and check everything we missed.
                 nf = iter(visit).next
-                pos = 0
-                while pos < len(visit):
-                    # visit in mid-sized batches so that we don't
-                    # block signals indefinitely
-                    xr = xrange(pos, min(len(visit), pos + 1000))
-                    for st in util.statfiles([join(visit[n]) for n in xr]):
-                        results[nf()] = st
-                    pos += 1000
+                for st in util.statfiles([join(i) for i in visit]):
+                    results[nf()] = st
         return results
 
     def status(self, match, subrepos, ignored, clean, unknown):


More information about the Mercurial-devel mailing list