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.
--- 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)