compat: pass all hgweb dispatch argument to the orig function
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 14 Mar 2018 02:21:07 +0100
changeset 3523 63bba357a1b4
parent 3522 7fa887cb1a6e
child 3524 6d4095e6bdd3
compat: pass all hgweb dispatch argument to the orig function This make use compatible with whatever changes on this side.
hgext3rd/evolve/obsexchange.py
--- a/hgext3rd/evolve/obsexchange.py	Wed Mar 07 00:00:02 2018 -0500
+++ b/hgext3rd/evolve/obsexchange.py	Wed Mar 14 02:21:07 2018 +0100
@@ -243,9 +243,9 @@
         protohandler = orig(repo, req, query)
         olddispatch = protohandler['dispatch']
 
-        def newdispatch():
+        def newdispatch(*args, **kwargs):
             try:
-                return olddispatch()
+                return olddispatch(*args, **kwargs)
             except hgwebcommon.ErrorResponse as inst:
                 if protohandler['cmd'] != 'listkeys':
                     raise