Submitter | phabricator |
---|---|
Date | Jan. 13, 2020, 2:18 p.m. |
Message ID | <eef519954c296b4e2ae3abbc94ba1b49@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/44266/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2429,12 +2429,16 @@ def fns_generator(): if allfiles: - fiter = iter(ctx) + + def bad(f, msg): + pass + + for f in ctx.matches(matchmod.badmatch(match, bad)): + yield f else: - fiter = ctx.files() - for f in fiter: - if match(f): - yield f + for f in ctx.files(): + if match(f): + yield f fns = fns_generator() prepare(ctx, fns)