mercurial/cmdutil.py
changeset 23258 10697f29af2b
parent 23139 e53f6b72a0e4
child 23289 ae5d0a22ee7e
equal deleted inserted replaced
23257:37c57a7cf160 23258:10697f29af2b
  1980     wctx = repo[None]
  1980     wctx = repo[None]
  1981     cca = None
  1981     cca = None
  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 repo.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 repo.dirstate:
  1987         if exact or not explicitonly and f not in wctx:
  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)))