Patchwork [04,of,13] parseindex: also forward keyword argument in a debug wrapper

login
register
mail settings
Submitter Boris Feld
Date Feb. 6, 2018, 1:21 p.m.
Message ID <53534aa0676becd56623.1517923285@FB>
Download mbox | patch
Permalink /patch/27355/
State New
Headers show

Comments

Boris Feld - Feb. 6, 2018, 1:21 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1517914357 -3600
#      Tue Feb 06 11:52:37 2018 +0100
# Node ID 53534aa0676becd566238ce945274853526e9823
# Parent  4cd271a9bd82ddca149a0dd5a2ae819a4c1db8ef
# EXP-Topic revlog-fp
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 53534aa0676b
parseindex: also forward keyword argument in a debug wrapper

Otherwise, it gets in the way of a coming refactoring.

Patch

diff --git a/tests/test-parseindex.t b/tests/test-parseindex.t
--- a/tests/test-parseindex.t
+++ b/tests/test-parseindex.t
@@ -43,8 +43,8 @@  We approximate that by reducing the read
   > 
   > def opener(*args):
   >     o = vfs.vfs(*args)
-  >     def wrapper(*a):
-  >         f = o(*a)
+  >     def wrapper(*a, **kwargs):
+  >         f = o(*a, **kwargs)
   >         return singlebyteread(f)
   >     return wrapper
   >