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

login
register
mail settings
Submitter phabricator
Date Nov. 13, 2019, 2 p.m.
Message ID <bdce2d04ce013cf361347160e9d2c530@localhost.localdomain>
Download mbox | patch
Permalink /patch/43155/
State Not Applicable
Headers show

Comments

phabricator - Nov. 13, 2019, 2 p.m.
Closed by commit rHGc5f6f58f6c71: remotefilelog: handle **kwargs correctly when overriding changelog.add() (authored by dploch).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7372?vs=18050&id=18052

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7372/new/

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

AFFECTED FILES
  hgext/remotefilelog/__init__.py

CHANGE DETAILS




To: dploch, #hg-reviewers, pulkit
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: