fix: use `set_possibly_dirty` instead of `normallookup`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 05:41:32 +0200
changeset 47735 20c2a15cd47a
parent 47734 936f26b9f1cc
child 47736 b9086ec4d28b
fix: use `set_possibly_dirty` instead of `normallookup` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11177
hgext/fix.py
--- a/hgext/fix.py	Mon Jul 19 05:41:02 2021 +0200
+++ b/hgext/fix.py	Mon Jul 19 05:41:32 2021 +0200
@@ -757,7 +757,7 @@
         fctx = ctx[path]
         fctx.write(data, fctx.flags())
         if repo.dirstate[path] == b'n':
-            repo.dirstate.normallookup(path)
+            repo.dirstate.set_possibly_dirty(path)
 
     oldparentnodes = repo.dirstate.parents()
     newparentnodes = [replacements.get(n, n) for n in oldparentnodes]