changeset 287:cd6a462ed1e1

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-----
author mpm@selenic.com
date Wed, 08 Jun 2005 16:15:07 -0800
parents bd9d1e93f8d6
children 97c87ac6d7a4
files mercurial/hg.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()