comparison mercurial/dirstate.py @ 26984:af2663680e95

dirstate: back out 502b56a9e897 Superseded by the parent of this commit.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 17 Nov 2015 13:47:16 -0800
parents 663eff02a876
children 448cbdab5883
comparison
equal deleted inserted replaced
26983:f9f2f29ce023 26984:af2663680e95
1006 results[nf] = None 1006 results[nf] = None
1007 else: 1007 else:
1008 # We may not have walked the full directory tree above, 1008 # We may not have walked the full directory tree above,
1009 # so stat and check everything we missed. 1009 # so stat and check everything we missed.
1010 nf = iter(visit).next 1010 nf = iter(visit).next
1011 pos = 0 1011 for st in util.statfiles([join(i) for i in visit]):
1012 while pos < len(visit): 1012 results[nf()] = st
1013 # visit in mid-sized batches so that we don't
1014 # block signals indefinitely
1015 xr = xrange(pos, min(len(visit), pos + 1000))
1016 for st in util.statfiles([join(visit[n]) for n in xr]):
1017 results[nf()] = st
1018 pos += 1000
1019 return results 1013 return results
1020 1014
1021 def status(self, match, subrepos, ignored, clean, unknown): 1015 def status(self, match, subrepos, ignored, clean, unknown):
1022 '''Determine the status of the working copy relative to the 1016 '''Determine the status of the working copy relative to the
1023 dirstate and return a pair of (unsure, status), where status is of type 1017 dirstate and return a pair of (unsure, status), where status is of type