equal
deleted
inserted
replaced
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))) |