Mercurial > hg-stable
changeset 15385:4439ec496378 stable
largefiles: avoid checking requirements on every command
When largefiles is enabled, commands on large repositories which don't
require largefiles could be slowed down substantially. Disable
checking this for every command.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 29 Oct 2011 17:38:13 -0500 |
parents | bf55991af17e |
children | 6051d8e7e133 |
files | hgext/largefiles/reposetup.py |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py Fri Oct 28 18:50:54 2011 +0200 +++ b/hgext/largefiles/reposetup.py Sat Oct 29 17:38:13 2011 -0500 @@ -405,7 +405,5 @@ repo.requirements.add('largefiles') repo._writerequirements() - checkrequireslfiles(ui, repo) - ui.setconfig('hooks', 'changegroup.lfiles', checkrequireslfiles) ui.setconfig('hooks', 'commit.lfiles', checkrequireslfiles)