--- 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)