compat: keep passing arguments as keyword argument
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 29 Mar 2018 19:47:48 +0200
changeset 3614 9ad461df4d4d
parent 3613 bf583a8dc637
child 3615 1ff7ff53d81f
compat: keep passing arguments as keyword argument Otherwise, This break with new changes in upstream Mercurial.
hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py	Thu Mar 29 18:34:32 2018 +0200
+++ b/hgext3rd/topic/__init__.py	Thu Mar 29 19:47:48 2018 +0200
@@ -1166,7 +1166,7 @@
         if node in thezeros or rev in thezeros:
             repo.ui.setconfig('_internal', 'keep-topic', 'yes',
                               source='topic-extension')
-        return orig(ui, repo, node, rev, *args, **kwargs)
+        return orig(ui, repo, node=node, rev=rev, *args, **kwargs)
     finally:
         repo.ui.restoreconfig(backup)