diff mercurial/cmdutil.py @ 47707:61753b1ba96f

revert: use `set_clean` instead of `normal` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11149
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Jul 2021 03:52:20 +0200
parents 3c0efa0eeea6
children 4d1ae9cba551
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Mon Jul 19 03:15:57 2021 +0200
+++ b/mercurial/cmdutil.py	Mon Jul 19 03:52:20 2021 +0200
@@ -3598,7 +3598,7 @@
         if p2 != repo.nullid:
             normal = repo.dirstate.normallookup
         else:
-            normal = repo.dirstate.normal
+            normal = repo.dirstate.set_clean
 
     newlyaddedandmodifiedfiles = set()
     if interactive:
@@ -3691,7 +3691,7 @@
 
     normal = repo.dirstate.normallookup
     if node == parent and p2 == repo.nullid:
-        normal = repo.dirstate.normal
+        normal = repo.dirstate.set_clean
     for f in actions[b'undelete'][0]:
         if interactive:
             choice = repo.ui.promptchoice(