diff hgext/fix.py @ 47735:20c2a15cd47a

fix: use `set_possibly_dirty` instead of `normallookup` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11177
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Jul 2021 05:41:32 +0200
parents eb2a6f66c463
children 3feda1e779d4 82c87566bfc0
line wrap: on
line diff
--- 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]