Patchwork D7372: remotefilelog: handle **kwargs correctly when overriding changelog.add()

login
register
mail settings
Submitter phabricator
Date Nov. 12, 2019, 11:55 p.m.
Message ID <differential-rev-PHID-DREV-b64cthkqf3qg47rznac5-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43153/
State Superseded
Headers show

Comments

phabricator - Nov. 12, 2019, 11:55 p.m.
dploch created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7372

AFFECTED FILES
  hgext/remotefilelog/__init__.py

CHANGE DETAILS




To: dploch, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/remotefilelog/__init__.py b/hgext/remotefilelog/__init__.py
--- a/hgext/remotefilelog/__init__.py
+++ b/hgext/remotefilelog/__init__.py
@@ -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: