hgext/lfs/wireprotolfsserver.py
changeset 37248 dfb38c4850a9
parent 37149 cc0a6ea95d98
child 37249 fe061e47a2cf
equal deleted inserted replaced
37247:2ed180117f76 37248:dfb38c4850a9
    28     """Wrap wireprotoserver.handlewsgirequest() to possibly process an LFS
    28     """Wrap wireprotoserver.handlewsgirequest() to possibly process an LFS
    29     request if it is left unprocessed by the wrapped method.
    29     request if it is left unprocessed by the wrapped method.
    30     """
    30     """
    31     if orig(rctx, req, res, checkperm):
    31     if orig(rctx, req, res, checkperm):
    32         return True
    32         return True
       
    33 
       
    34     if not rctx.repo.ui.configbool('experimental', 'lfs.serve'):
       
    35         return False
    33 
    36 
    34     if not req.dispatchpath:
    37     if not req.dispatchpath:
    35         return False
    38         return False
    36 
    39 
    37     try:
    40     try: