# HG changeset patch # User mpm@selenic.com # Date 1118276107 28800 # Node ID cd6a462ed1e1caf615811a5e4c90af297fecce41 # Parent bd9d1e93f8d6b9b69d9e0a317c8268820229e76f 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----- diff -r bd9d1e93f8d6 -r cd6a462ed1e1 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()