mercurial/util.py
changeset 7875 553aa0cbeab6
parent 7869 bc027d72c289
child 7879 5c4026a289a4
equal deleted inserted replaced
7874:d812029cda85 7875:553aa0cbeab6
   902         yield st
   902         yield st
   903 
   903 
   904 def _statfiles_clustered(files):
   904 def _statfiles_clustered(files):
   905     '''Stat each file in files and yield stat or None if file does not exist.
   905     '''Stat each file in files and yield stat or None if file does not exist.
   906     Cluster and cache stat per directory to minimize number of OS stat calls.'''
   906     Cluster and cache stat per directory to minimize number of OS stat calls.'''
   907     lstat = os.lstat
       
   908     ncase = os.path.normcase
   907     ncase = os.path.normcase
   909     sep   = os.sep
   908     sep   = os.sep
   910     dircache = {} # dirname -> filename -> status | None if file does not exist
   909     dircache = {} # dirname -> filename -> status | None if file does not exist
   911     for nf in files:
   910     for nf in files:
   912         nf  = ncase(nf)
   911         nf  = ncase(nf)