Patchwork D11175: mq: replace `normallookup` call with newer API

login
register
mail settings
Submitter phabricator
Date July 19, 2021, 2:11 p.m.
Message ID <differential-rev-PHID-DREV-y3jr3yqoa4lirh6ktorl-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49495/
State Superseded
Headers show

Comments

phabricator - July 19, 2021, 2:11 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This align MQ behavior with what what `scmutil.movedirstate` does. (it should
  probably use `scmutil.movedirstate` itself.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11175

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -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)