Patchwork D11343: dirstate: also wrap the new method in `dirstatenonnormalcheck`

login
register
mail settings
Submitter phabricator
Date Aug. 26, 2021, 2:20 p.m.
Message ID <differential-rev-PHID-DREV-tybfxsc6w4hnylkcijpd-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49658/
State Superseded
Headers show

Comments

phabricator - Aug. 26, 2021, 2:20 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The goal of this is to make sure we set the data right, so we need to make sure
  it run after the new method, that we actually call, in addition to the old one,
  that we no longer call.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  contrib/dirstatenonnormalcheck.py

CHANGE DETAILS




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

Patch

diff --git a/contrib/dirstatenonnormalcheck.py b/contrib/dirstatenonnormalcheck.py
--- a/contrib/dirstatenonnormalcheck.py
+++ b/contrib/dirstatenonnormalcheck.py
@@ -67,3 +67,12 @@ 
             extensions.wrapfunction(dirstatecl, 'remove', _checkdirstate)
             extensions.wrapfunction(dirstatecl, 'merge', _checkdirstate)
             extensions.wrapfunction(dirstatecl, 'drop', _checkdirstate)
+            extensions.wrapfunction(dirstatecl, 'set_tracked', _checkdirstate)
+            extensions.wrapfunction(dirstatecl, 'set_untracked', _checkdirstate)
+            extensions.wrapfunction(
+                dirstatecl, 'set_possibly_dirty', _checkdirstate
+            )
+            extensions.wrapfunction(
+                dirstatecl, 'update_file_p1', _checkdirstate
+            )
+            extensions.wrapfunction(dirstatecl, 'update_file', _checkdirstate)