--- a/mercurial/localrepo.py Wed Mar 04 00:45:54 2020 -0500
+++ b/mercurial/localrepo.py Fri Feb 28 11:32:02 2020 -0800
@@ -2956,6 +2956,7 @@
or self.ui.configbool(b'ui', b'allowemptycommit')
)
if not allowemptycommit:
+ ms.reset()
return None
if merge and cctx.deleted():