match: make arguments of _expandsets() optional
Arguments 'ctx', 'listsubrepos' and 'badfn' are optional in function
body.
--- 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 = []