changeset 42086:1721b92f2b5e

match: make arguments of _expandsets() optional Arguments 'ctx', 'listsubrepos' and 'badfn' are optional in function body.
author Denis Laxalde <denis@laxalde.org>
date Sun, 07 Apr 2019 17:16:58 +0200
parents 54e6d7ef5ca5
children 2e2699af5649
files mercurial/match.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 = []