changeset 22210:537f55a27101

revert: drop `missingmodified` set There cannot be any elements in this set since: dsmodified &= modified
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 24 Jun 2014 17:36:49 +0100
parents 06fbd9518bc5
children 76fa261b5fe3
files mercurial/cmdutil.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Jun 24 17:28:20 2014 +0100
+++ b/mercurial/cmdutil.py	Tue Jun 24 17:36:49 2014 +0100
@@ -2461,9 +2461,6 @@
                 return _('forgetting %s\n')
             return _('removing %s\n')
 
-        missingmodified = dsmodified - smf
-        dsmodified -= missingmodified
-
         # action to be actually performed by revert
         # (<list of file>, message>) tuple
         actions = {'revert': ([], _('reverting %s\n')),
@@ -2478,7 +2475,6 @@
             #   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)),