commit: abort with empty commit text
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
commit: abort with empty commit text
manifest hash: d932ca95c920d6a4d33281d29e605c6995930016
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCp4oLywK+sNU5EO8RAulBAKCOhHn6p/xNaJUFs/IsOY8+1ad3ZQCfbUNb
XigHO+zgvzzsFWIvLnZFiGI=
=lldi
-----END PGP SIGNATURE-----
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -498,6 +498,9 @@ class localrepository:
edittext += "".join(["HG: removed %s\n" % f for f in remove])
edittext = self.ui.edit(edittext)
+ if not edittext:
+ return 1
+
n = self.changelog.add(mn, new, edittext, tr, p1, p2)
tr.close()