mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
cmdutil: remove duplicated badmatch call in cat()
Subrepo logic is handled in ctx.walk().
This commit is contained in:
parent
57c92b937c
commit
475307efcd
@ -2581,14 +2581,7 @@ def cat(ui, repo, ctx, matcher, prefix, **opts):
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user