mercurial/dirstate.py
changeset 24523 a4b81dbe73c1
parent 24522 18085e46caa9
child 24538 24df92075200
--- a/mercurial/dirstate.py	Sun Mar 29 23:28:30 2015 -0700
+++ b/mercurial/dirstate.py	Sun Mar 29 18:28:48 2015 -0700
@@ -634,7 +634,9 @@
 
         alldirs = None
         for ff in files:
-            if normalize:
+            # constructing the foldmap is expensive, so don't do it for the
+            # common case where files is ['.']
+            if normalize and ff != '.':
                 nf = normalize(ff, False, True)
             else:
                 nf = ff