# HG changeset patch # User Siddharth Agarwal # Date 2015-03-30 06:28:30 # Node ID 18085e46caa92553018c78fd210f31a88a28912c # Parent 489026bffbf60691d6c3d97287003a03dfdc4691 dirstate._walkexplicit: drop normpath calls The paths the matcher returns are normalized already. diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -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