mercurial/dirstate.py
changeset 26984 af2663680e95
parent 26887 663eff02a876
child 27016 448cbdab5883
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