# HG changeset patch # User Denis Laxalde # Date 2019-04-07 15:16:58 # Node ID 1721b92f2b5e323acd48aeb4e1dd5918cb9f52f4 # Parent 54e6d7ef5ca548126e3182bedb20b40144ca111e match: make arguments of _expandsets() optional Arguments 'ctx', 'listsubrepos' and 'badfn' are optional in function body. diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -42,7 +42,7 @@ def _rematcher(regex): except AttributeError: return m.match -def _expandsets(kindpats, ctx, listsubrepos, badfn): +def _expandsets(kindpats, ctx=None, listsubrepos=False, badfn=None): '''Returns the kindpats list with the 'set' patterns expanded to matchers''' matchers = [] other = []