Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 22235:41a07d4f909f
revert: drop more dead code
Now that we detect all clean files, we do not need this clause anymore.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 24 Jun 2014 23:55:43 +0100 |
parents | fe9fc29ac2d0 |
children | 3c24fb96900f |
comparison
equal
deleted
inserted
replaced
22234:fe9fc29ac2d0 | 22235:41a07d4f909f |
---|---|
2523 if abs not in repo.dirstate: | 2523 if abs not in repo.dirstate: |
2524 if exact: | 2524 if exact: |
2525 ui.warn(_('file not managed: %s\n') % rel) | 2525 ui.warn(_('file not managed: %s\n') % rel) |
2526 continue | 2526 continue |
2527 | 2527 |
2528 # parent is target, no changes mean no changes | |
2529 if node == parent: | |
2530 if exact: | |
2531 ui.warn(_('no changes needed to %s\n') % rel) | |
2532 continue | |
2533 | 2528 |
2534 if not opts.get('dry_run'): | 2529 if not opts.get('dry_run'): |
2535 _performrevert(repo, parents, ctx, actions) | 2530 _performrevert(repo, parents, ctx, actions) |
2536 | 2531 |
2537 if targetsubs: | 2532 if targetsubs: |