diff -r a3b4ccbec269 -r 3790efb388ca hgext/lfs/wireprotolfsserver.py --- a/hgext/lfs/wireprotolfsserver.py Thu May 24 21:54:31 2018 +0900 +++ b/hgext/lfs/wireprotolfsserver.py Thu May 31 09:19:09 2018 -0400 @@ -18,6 +18,7 @@ from mercurial import ( pycompat, + util, ) from . import blobstore @@ -40,6 +41,9 @@ if not rctx.repo.ui.configbool('experimental', 'lfs.serve'): return False + if not util.safehasattr(rctx.repo.svfs, 'lfslocalblobstore'): + return False + if not req.dispatchpath: return False