comparison mercurial/cmdutil.py @ 22237:808926c76cac

revert: drop dead code for untracked files Untracked files are handled through status now.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 25 Jun 2014 00:02:17 +0100
parents 3c24fb96900f
children 75618a223e18
comparison
equal deleted inserted replaced
22236:3c24fb96900f 22237:808926c76cac
2519 msg = msg(abs) 2519 msg = msg(abs)
2520 ui.status(msg % rel) 2520 ui.status(msg % rel)
2521 elif exact: 2521 elif exact:
2522 ui.warn(msg % rel) 2522 ui.warn(msg % rel)
2523 break 2523 break
2524 else:
2525 # Not touched in current dirstate.
2526
2527 # file is unknown in parent, restore older version or ignore.
2528 if abs not in repo.dirstate:
2529 if exact:
2530 ui.warn(_('file not managed: %s\n') % rel)
2531 continue
2532 2524
2533 2525
2534 if not opts.get('dry_run'): 2526 if not opts.get('dry_run'):
2535 _performrevert(repo, parents, ctx, actions) 2527 _performrevert(repo, parents, ctx, actions)
2536 2528