mq: replace `normallookup` call with newer API
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 18 Jul 2021 22:50:02 +0200
changeset 47733 4b7eb01db10b
parent 47732 dc610e325302
child 47734 936f26b9f1cc
mq: replace `normallookup` call with newer API This align MQ behavior with what what `scmutil.movedirstate` does. (it should probably use `scmutil.movedirstate` itself. Differential Revision: https://phab.mercurial-scm.org/D11175
hgext/mq.py
--- a/hgext/mq.py	Mon Jul 19 03:52:54 2021 +0200
+++ b/hgext/mq.py	Sun Jul 18 22:50:02 2021 +0200
@@ -2051,7 +2051,7 @@
                     for f in m:
                         repo.dirstate.update_file_p1(f, p1_tracked=True)
                     for f in mm:
-                        repo.dirstate.normallookup(f)
+                        repo.dirstate.update_file_p1(f, p1_tracked=True)
                     for f in forget:
                         repo.dirstate.drop(f)