changeset 43618:c5f6f58f6c71

remotefilelog: handle **kwargs correctly when overriding changelog.add() Differential Revision: https://phab.mercurial-scm.org/D7372
author Daniel Ploch <dploch@google.com>
date Tue, 12 Nov 2019 15:53:58 -0800
parents 697c2e32c490
children c207c46a86b9
files hgext/remotefilelog/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: