match: make arguments of _expandsets() optional
authorDenis Laxalde <denis@laxalde.org>
Sun, 07 Apr 2019 17:16:58 +0200
changeset 42086 1721b92f2b5e
parent 42085 54e6d7ef5ca5
child 42087 2e2699af5649
match: make arguments of _expandsets() optional Arguments 'ctx', 'listsubrepos' and 'badfn' are optional in function body.
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 = []