# HG changeset patch # User Hannes Oldenburg # Date 2016-08-07 14:06:20 # Node ID 84a8de5ac901c00f4efec1ec2e0be24ebd970fd8 # Parent c1696430254f9498427fdf88dfa46d4f58c23cbd cmdutil: remove duplicated badmatch call in cat() Subrepo logic is handled in ctx.walk(). diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2581,14 +2581,7 @@ def cat(ui, repo, ctx, matcher, prefix, write(file) return 0 - # Don't warn about "missing" files that are really in subrepos - def badfn(path, msg): - for subpath in ctx.substate: - if path.startswith(subpath + '/'): - return - matcher.bad(path, msg) - - for abs in ctx.walk(matchmod.badmatch(matcher, badfn)): + for abs in ctx.walk(matcher): write(abs) err = 0