largefiles: avoid checking requirements on every command stable
authorMatt Mackall <mpm@selenic.com>
Sat, 29 Oct 2011 17:38:13 -0500
branchstable
changeset 15385 4439ec496378
parent 15384 bf55991af17e
child 15386 6051d8e7e133
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.
hgext/largefiles/reposetup.py
--- 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)