changeset 3523:63bba357a1b4

compat: pass all hgweb dispatch argument to the orig function This make use compatible with whatever changes on this side.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 14 Mar 2018 02:21:07 +0100
parents 7fa887cb1a6e
children 6d4095e6bdd3
files hgext3rd/evolve/obsexchange.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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