mercurial/scmutil.py
changeset 28017 d3f1b7ee5e70
parent 27895 2d6a89e79b48
child 28197 2ada62388bb1
equal deleted inserted replaced
28016:a2be6f0f58fb 28017:d3f1b7ee5e70
   911     wctx = repo[None]
   911     wctx = repo[None]
   912     for subpath in sorted(wctx.substate):
   912     for subpath in sorted(wctx.substate):
   913         if opts.get('subrepos') or matchessubrepo(m, subpath):
   913         if opts.get('subrepos') or matchessubrepo(m, subpath):
   914             sub = wctx.sub(subpath)
   914             sub = wctx.sub(subpath)
   915             try:
   915             try:
   916                 submatch = matchmod.narrowmatcher(subpath, m)
   916                 submatch = matchmod.subdirmatcher(subpath, m)
   917                 if sub.addremove(submatch, prefix, opts, dry_run, similarity):
   917                 if sub.addremove(submatch, prefix, opts, dry_run, similarity):
   918                     ret = 1
   918                     ret = 1
   919             except error.LookupError:
   919             except error.LookupError:
   920                 repo.ui.status(_("skipping missing subrepository: %s\n")
   920                 repo.ui.status(_("skipping missing subrepository: %s\n")
   921                                  % join(subpath))
   921                                  % join(subpath))