commit: abort with empty commit text
authormpm@selenic.com
Wed, 08 Jun 2005 16:15:07 -0800
changeset 287 cd6a462ed1e1
parent 286 bd9d1e93f8d6
child 288 97c87ac6d7a4
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-----
mercurial/hg.py
--- a/mercurial/hg.py	Wed Jun 08 14:46:34 2005 -0800
+++ b/mercurial/hg.py	Wed Jun 08 16:15:07 2005 -0800
@@ -498,6 +498,9 @@
         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()