remotefilelog: handle **kwargs correctly when overriding changelog.add()
authorDaniel Ploch <dploch@google.com>
Tue, 12 Nov 2019 15:53:58 -0800
changeset 43618 c5f6f58f6c71
parent 43617 697c2e32c490
child 43619 c207c46a86b9
remotefilelog: handle **kwargs correctly when overriding changelog.add() Differential Revision: https://phab.mercurial-scm.org/D7372
hgext/remotefilelog/__init__.py
--- a/hgext/remotefilelog/__init__.py	Mon Nov 11 18:51:55 2019 -0800
+++ b/hgext/remotefilelog/__init__.py	Tue Nov 12 15:53:58 2019 -0800
@@ -719,9 +719,9 @@
         remotefilelog.remotefilelog, b'addrawrevision', addrawrevision
     )
 
-    def changelogadd(orig, self, *args):
+    def changelogadd(orig, self, *args, **kwargs):
         oldlen = len(self)
-        node = orig(self, *args)
+        node = orig(self, *args, **kwargs)
         newlen = len(self)
         if oldlen != newlen:
             for oldargs in pendingfilecommits: