hgext/lfs/__init__.py
changeset 45807 74271829ddc0
parent 45106 a03c177a4679
child 45957 89a2afe31e82
equal deleted inserted replaced
45806:88a47cbf063c 45807:74271829ddc0
   125 import sys
   125 import sys
   126 
   126 
   127 from mercurial.i18n import _
   127 from mercurial.i18n import _
   128 
   128 
   129 from mercurial import (
   129 from mercurial import (
       
   130     bundlecaches,
   130     config,
   131     config,
   131     context,
   132     context,
   132     error,
   133     error,
   133     exchange,
       
   134     extensions,
   134     extensions,
   135     exthelper,
   135     exthelper,
   136     filelog,
   136     filelog,
   137     filesetlang,
   137     filesetlang,
   138     localrepo,
   138     localrepo,
   349     scmutil.fileprefetchhooks.add(b'lfs', wrapper._prefetchfiles)
   349     scmutil.fileprefetchhooks.add(b'lfs', wrapper._prefetchfiles)
   350 
   350 
   351     # Make bundle choose changegroup3 instead of changegroup2. This affects
   351     # Make bundle choose changegroup3 instead of changegroup2. This affects
   352     # "hg bundle" command. Note: it does not cover all bundle formats like
   352     # "hg bundle" command. Note: it does not cover all bundle formats like
   353     # "packed1". Using "packed1" with lfs will likely cause trouble.
   353     # "packed1". Using "packed1" with lfs will likely cause trouble.
   354     exchange._bundlespeccontentopts[b"v2"][b"cg.version"] = b"03"
   354     bundlecaches._bundlespeccontentopts[b"v2"][b"cg.version"] = b"03"
   355 
   355 
   356 
   356 
   357 @eh.filesetpredicate(b'lfs()')
   357 @eh.filesetpredicate(b'lfs()')
   358 def lfsfileset(mctx, x):
   358 def lfsfileset(mctx, x):
   359     """File that uses LFS storage."""
   359     """File that uses LFS storage."""