##// END OF EJS Templates
dirstate: cache util.normcase while constructing the foldmap...
Siddharth Agarwal -
r22782:a1eb21f5 default
parent child Browse files
Show More
@@ -84,11 +84,12 b' class dirstate(object):'
84 @propertycache
84 @propertycache
85 def _foldmap(self):
85 def _foldmap(self):
86 f = {}
86 f = {}
87 normcase = util.normcase
87 for name, s in self._map.iteritems():
88 for name, s in self._map.iteritems():
88 if s[0] != 'r':
89 if s[0] != 'r':
89 f[util.normcase(name)] = name
90 f[normcase(name)] = name
90 for name in self._dirs:
91 for name in self._dirs:
91 f[util.normcase(name)] = name
92 f[normcase(name)] = name
92 f['.'] = '.' # prevents useless util.fspath() invocation
93 f['.'] = '.' # prevents useless util.fspath() invocation
93 return f
94 return f
94
95
General Comments 0
You need to be logged in to leave comments. Login now