hgext/lfs/wireprotolfsserver.py
changeset 50928 d718eddf01d9
parent 50786 dde4b55a0785
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
    14 from mercurial.hgweb import common as hgwebcommon
    14 from mercurial.hgweb import common as hgwebcommon
    15 
    15 
    16 from mercurial import (
    16 from mercurial import (
    17     exthelper,
    17     exthelper,
    18     pycompat,
    18     pycompat,
    19     util,
       
    20     wireprotoserver,
    19     wireprotoserver,
    21 )
    20 )
    22 
    21 
    23 from . import blobstore
    22 from . import blobstore
    24 
    23 
    42         return True
    41         return True
    43 
    42 
    44     if not rctx.repo.ui.configbool(b'experimental', b'lfs.serve'):
    43     if not rctx.repo.ui.configbool(b'experimental', b'lfs.serve'):
    45         return False
    44         return False
    46 
    45 
    47     if not util.safehasattr(rctx.repo.svfs, 'lfslocalblobstore'):
    46     if not hasattr(rctx.repo.svfs, 'lfslocalblobstore'):
    48         return False
    47         return False
    49 
    48 
    50     if not req.dispatchpath:
    49     if not req.dispatchpath:
    51         return False
    50         return False
    52 
    51