mercurial/cmdutil.py
changeset 29739 84a8de5ac901
parent 29707 a1082645d623
child 29758 2372182e505b
equal deleted inserted replaced
29738:c1696430254f 29739:84a8de5ac901
  2579         mfnode = ctx.manifestnode()
  2579         mfnode = ctx.manifestnode()
  2580         if mfnode and mf.find(mfnode, file)[0]:
  2580         if mfnode and mf.find(mfnode, file)[0]:
  2581             write(file)
  2581             write(file)
  2582             return 0
  2582             return 0
  2583 
  2583 
  2584     # Don't warn about "missing" files that are really in subrepos
  2584     for abs in ctx.walk(matcher):
  2585     def badfn(path, msg):
       
  2586         for subpath in ctx.substate:
       
  2587             if path.startswith(subpath + '/'):
       
  2588                 return
       
  2589         matcher.bad(path, msg)
       
  2590 
       
  2591     for abs in ctx.walk(matchmod.badmatch(matcher, badfn)):
       
  2592         write(abs)
  2585         write(abs)
  2593         err = 0
  2586         err = 0
  2594 
  2587 
  2595     for subpath in sorted(ctx.substate):
  2588     for subpath in sorted(ctx.substate):
  2596         sub = ctx.sub(subpath)
  2589         sub = ctx.sub(subpath)