mercurial/cmdutil.py
changeset 23462 afa3fbbcabd3
parent 23453 341e4798c24d
child 23509 32e68271a037
equal deleted inserted replaced
23461:ffef6d503ab2 23462:afa3fbbcabd3
  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 and repo.wvfs.exists(f):
  1987         if exact or not explicitonly and f not in wctx and repo.wvfs.lexists(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)))