hgext/lfs/__init__.py
changeset 41070 8f40e21ca842
parent 41069 70ca0e846d25
child 41230 d2d716cc0700
--- a/hgext/lfs/__init__.py	Thu Dec 27 21:55:22 2018 -0500
+++ b/hgext/lfs/__init__.py	Thu Dec 27 23:46:35 2018 -0500
@@ -140,7 +140,6 @@
     minifileset,
     node,
     pycompat,
-    registrar,
     repository,
     revlog,
     scmutil,
@@ -168,6 +167,7 @@
 configtable = eh.configtable
 extsetup = eh.finalextsetup
 uisetup = eh.finaluisetup
+filesetpredicate = eh.filesetpredicate
 reposetup = eh.finalreposetup
 templatekeyword = eh.templatekeyword
 
@@ -200,7 +200,6 @@
 eh.configitem('lfs', 'retry',
     default=5,
 )
-filesetpredicate = registrar.filesetpredicate()
 
 lfsprocessor = (
     wrapper.readfromstore,
@@ -337,7 +336,7 @@
     # "packed1". Using "packed1" with lfs will likely cause trouble.
     exchange._bundlespeccontentopts["v2"]["cg.version"] = "03"
 
-@filesetpredicate('lfs()')
+@eh.filesetpredicate('lfs()')
 def lfsfileset(mctx, x):
     """File that uses LFS storage."""
     # i18n: "lfs" is a keyword