keyword: use `set_clean` instead of `normal`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 02:05:24 +0200
changeset 47711 b492bc018011
parent 47710 3148204e649e
child 47712 95b864a670df
keyword: use `set_clean` instead of `normal` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11153
hgext/keyword.py
--- a/hgext/keyword.py	Mon Jul 19 01:58:34 2021 +0200
+++ b/hgext/keyword.py	Mon Jul 19 02:05:24 2021 +0200
@@ -356,7 +356,7 @@
                 fp.write(data)
                 fp.close()
                 if kwcmd:
-                    self.repo.dirstate.normal(f)
+                    self.repo.dirstate.set_clean(f)
                 elif self.postcommit:
                     self.repo.dirstate.normallookup(f)