diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2521,20 +2521,20 @@ def revert(ui, repo, ctx, parents, *pats ## Sets that results that will change file on disk # Modified compared to target, no local change - (modified, actions['revert'], discard), + (modified, actions['revert'], discard), # Modified compared to target, local change - (dsmodified, actions['revert'], backup), + (dsmodified, actions['revert'], backup), # Added since target - (dsadded, actions['remove'], backup), + (dsadded, actions['remove'], backup), # Removed since target, before working copy parent - (removed, actions['add'], backup), + (removed, actions['add'], backup), # Removed since targe, marked as such in working copy parent - (dsremoved, actions['undelete'], backup), + (dsremoved, actions['undelete'], backup), ## the following sets does not result in any file changes # File with no modification - (clean, actions['noop'], discard), + (clean, actions['noop'], discard), # Existing file, not tracked anywhere - (unknown, actions['unknown'], discard), + (unknown, actions['unknown'], discard), ) needdata = ('revert', 'add', 'remove', 'undelete')