remotefilelog: handle **kwargs correctly when overriding changelog.add()
Differential Revision: https://phab.mercurial-scm.org/D7372
--- 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: