hgext/lfs/wireprotolfsserver.py
changeset 41048 84d61fdcefa5
parent 39457 a913d2892e17
child 41424 7a11e4e55d5f
--- a/hgext/lfs/wireprotolfsserver.py	Fri Nov 30 21:39:55 2018 -0500
+++ b/hgext/lfs/wireprotolfsserver.py	Tue Nov 27 22:10:07 2018 -0500
@@ -17,8 +17,10 @@
 )
 
 from mercurial import (
+    exthelper,
     pycompat,
     util,
+    wireprotoserver,
 )
 
 from . import blobstore
@@ -31,6 +33,9 @@
 HTTP_NOT_ACCEPTABLE = hgwebcommon.HTTP_NOT_ACCEPTABLE
 HTTP_UNSUPPORTED_MEDIA_TYPE = hgwebcommon.HTTP_UNSUPPORTED_MEDIA_TYPE
 
+eh = exthelper.exthelper()
+
+@eh.wrapfunction(wireprotoserver, 'handlewsgirequest')
 def handlewsgirequest(orig, rctx, req, res, checkperm):
     """Wrap wireprotoserver.handlewsgirequest() to possibly process an LFS
     request if it is left unprocessed by the wrapped method.