mercurial/dirstate.py
changeset 42340 7ada598941d2
parent 42304 9c6c0f736e1d
child 42341 27d6956d386b
equal deleted inserted replaced
42339:c0e1ea0c4cee 42340:7ada598941d2
   757                 del files[i]
   757                 del files[i]
   758             j += 1
   758             j += 1
   759 
   759 
   760         if not files or '.' in files:
   760         if not files or '.' in files:
   761             files = ['.']
   761             files = ['.']
       
   762             # constructing the foldmap is expensive, so don't do it for the
       
   763             # common case where files is ['.']
       
   764             normalize = None
   762         results = dict.fromkeys(subrepos)
   765         results = dict.fromkeys(subrepos)
   763         results['.hg'] = None
   766         results['.hg'] = None
   764 
   767 
   765         for ff in files:
   768         for ff in files:
   766             # constructing the foldmap is expensive, so don't do it for the
   769             if normalize:
   767             # common case where files is ['.']
       
   768             if normalize and ff != '.':
       
   769                 nf = normalize(ff, False, True)
   770                 nf = normalize(ff, False, True)
   770             else:
   771             else:
   771                 nf = ff
   772                 nf = ff
   772             if nf in results:
   773             if nf in results:
   773                 continue
   774                 continue