equal
deleted
inserted
replaced
1312 bad = [] |
1312 bad = [] |
1313 oldbad = match.bad |
1313 oldbad = match.bad |
1314 match.bad = lambda x, y: bad.append(x) or oldbad(x, y) |
1314 match.bad = lambda x, y: bad.append(x) or oldbad(x, y) |
1315 names = [] |
1315 names = [] |
1316 wctx = repo[None] |
1316 wctx = repo[None] |
|
1317 wctx.status(clean=True) |
|
1318 existing = None |
|
1319 if scmutil.showportabilityalert(ui): |
|
1320 existing = dict([(fn.lower(), fn) for fn in |
|
1321 wctx.added() + wctx.clean() + wctx.modified()]) |
1317 for f in repo.walk(match): |
1322 for f in repo.walk(match): |
1318 exact = match.exact(f) |
1323 exact = match.exact(f) |
1319 if exact or f not in repo.dirstate: |
1324 if exact or f not in repo.dirstate: |
|
1325 if existing: |
|
1326 scmutil.checkcasecollision(ui, f, existing) |
1320 names.append(f) |
1327 names.append(f) |
1321 if ui.verbose or not exact: |
1328 if ui.verbose or not exact: |
1322 ui.status(_('adding %s\n') % match.rel(join(f))) |
1329 ui.status(_('adding %s\n') % match.rel(join(f))) |
1323 |
1330 |
1324 if listsubrepos: |
1331 if listsubrepos: |