contrib/dirstatenonnormalcheck.py
changeset 47674 ff97e793ed36
parent 47547 20b37ef33ebc
child 47939 74a8d5c6fdc6
--- a/contrib/dirstatenonnormalcheck.py	Thu Jul 15 17:24:09 2021 +0200
+++ b/contrib/dirstatenonnormalcheck.py	Thu Jul 08 12:18:21 2021 +0200
@@ -37,12 +37,12 @@
         ui.develwarn(b"[map] %s\n" % b_nonnormalcomputed, config=b'dirstate')
 
 
-def _checkdirstate(orig, self, arg):
+def _checkdirstate(orig, self, *args, **kwargs):
     """Check nonnormal set consistency before and after the call to orig"""
     checkconsistency(
         self._ui, orig, self._map, self._map.nonnormalset, b"before"
     )
-    r = orig(self, arg)
+    r = orig(self, *args, **kwargs)
     checkconsistency(
         self._ui, orig, self._map, self._map.nonnormalset, b"after"
     )