changeset 29751:84a8de5ac901

cmdutil: remove duplicated badmatch call in cat() Subrepo logic is handled in ctx.walk().
author Hannes Oldenburg <hannes.christian.oldenburg@gmail.com>
date Sun, 07 Aug 2016 14:06:20 +0000
parents c1696430254f
children 21ac534d7d30
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Fri Aug 05 15:48:09 2016 +0200
+++ b/mercurial/cmdutil.py	Sun Aug 07 14:06:20 2016 +0000
@@ -2581,14 +2581,7 @@
             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