# HG changeset patch # User Denis Laxalde # Date 1554650218 -7200 # Node ID 1721b92f2b5e323acd48aeb4e1dd5918cb9f52f4 # Parent 54e6d7ef5ca548126e3182bedb20b40144ca111e match: make arguments of _expandsets() optional Arguments 'ctx', 'listsubrepos' and 'badfn' are optional in function body. diff -r 54e6d7ef5ca5 -r 1721b92f2b5e mercurial/match.py --- a/mercurial/match.py Sun Apr 07 17:14:29 2019 +0200 +++ b/mercurial/match.py Sun Apr 07 17:16:58 2019 +0200 @@ -42,7 +42,7 @@ 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 = []