revert: use `set_clean` instead of `normal`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 03:52:20 +0200
changeset 47707 61753b1ba96f
parent 47706 5bbf304271a0
child 47708 7bdfd88251c0
revert: use `set_clean` instead of `normal` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11149
mercurial/cmdutil.py
--- 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(