mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
dirstate._walkexplicit: drop normpath calls
The paths the matcher returns are normalized already.
This commit is contained in:
parent
0d03b12a57
commit
8adc467907
@ -599,7 +599,6 @@ class dirstate(object):
|
||||
matchedir = match.explicitdir
|
||||
badfn = match.bad
|
||||
dmap = self._map
|
||||
normpath = util.normpath
|
||||
lstat = os.lstat
|
||||
getkind = stat.S_IFMT
|
||||
dirkind = stat.S_IFDIR
|
||||
@ -636,9 +635,9 @@ class dirstate(object):
|
||||
alldirs = None
|
||||
for ff in files:
|
||||
if normalize:
|
||||
nf = normalize(normpath(ff), False, True)
|
||||
nf = normalize(ff, False, True)
|
||||
else:
|
||||
nf = normpath(ff)
|
||||
nf = ff
|
||||
if nf in results:
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user