Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 17201:afd75476939e
scmutil: 25% speedup in casecollisionauditor
On a large repository, switching casecollisionauditor to lowercasing all file
names at once rather than one at a time improves hg-add time by 25%.
author | Joshua Redstone <joshua.redstone@fb.com> |
---|---|
date | Fri, 06 Jul 2012 13:56:40 -0700 |
parents | cdf1532d89c6 |
children | 62c56c94c77e |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Tue Jul 17 00:55:22 2012 +0200 +++ b/mercurial/cmdutil.py Fri Jul 06 13:56:40 2012 -0700 @@ -1473,7 +1473,7 @@ cca = None abort, warn = scmutil.checkportabilityalert(ui) if abort or warn: - cca = scmutil.casecollisionauditor(ui, abort, wctx) + cca = scmutil.casecollisionauditor(ui, abort, repo.dirstate) for f in repo.walk(match): exact = match.exact(f) if exact or not explicitonly and f not in repo.dirstate: