mercurial/cmdutil.py
changeset 23391 d8cdd46f426d
parent 23374 aa0a430d9c75
child 23404 b913c394386f
equal deleted inserted replaced
23390:6a3e38a173ec 23391:d8cdd46f426d
  1982     abort, warn = scmutil.checkportabilityalert(ui)
  1982     abort, warn = scmutil.checkportabilityalert(ui)
  1983     if abort or warn:
  1983     if abort or warn:
  1984         cca = scmutil.casecollisionauditor(ui, abort, repo.dirstate)
  1984         cca = scmutil.casecollisionauditor(ui, abort, repo.dirstate)
  1985     for f in wctx.walk(match):
  1985     for f in wctx.walk(match):
  1986         exact = match.exact(f)
  1986         exact = match.exact(f)
  1987         if exact or not explicitonly and f not in wctx:
  1987         if exact or not explicitonly and f not in wctx and repo.wvfs.exists(f):
  1988             if cca:
  1988             if cca:
  1989                 cca(f)
  1989                 cca(f)
  1990             names.append(f)
  1990             names.append(f)
  1991             if ui.verbose or not exact:
  1991             if ui.verbose or not exact:
  1992                 ui.status(_('adding %s\n') % match.rel(join(f)))
  1992                 ui.status(_('adding %s\n') % match.rel(join(f)))