# HG changeset patch # User Pierre-Yves David # Date 2014-06-24 16:36:49 # Node ID 537f55a2710181fd0eccc3da5ee4c0400f1bbf27 # Parent 06fbd9518bc56df9ed0034c41cc02d1aed722a0b revert: drop `missingmodified` set There cannot be any elements in this set since: dsmodified &= modified diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2461,9 +2461,6 @@ def revert(ui, repo, ctx, parents, *pats return _('forgetting %s\n') return _('removing %s\n') - missingmodified = dsmodified - smf - dsmodified -= missingmodified - # action to be actually performed by revert # (, message>) tuple actions = {'revert': ([], _('reverting %s\n')), @@ -2478,7 +2475,6 @@ def revert(ui, repo, ctx, parents, *pats # make backup (modified, (actions['revert'], False)), (dsmodified, (actions['revert'], True)), - (missingmodified, (actions['remove'], True)), (dsadded, (actions['remove'], True)), (removed, (actions['add'], True)), (dsremoved, (actions['undelete'], True)),