mercurial/commands.py
changeset 16600 b54f3c502e63
parent 16591 46e9ed223d2c
child 16603 ddd4996740c7
--- a/mercurial/commands.py	Fri May 04 17:27:14 2012 -0500
+++ b/mercurial/commands.py	Sun May 06 14:15:17 2012 -0500
@@ -2719,8 +2719,10 @@
             date = ctx.date()
             if opts.get('date'):
                 date = opts['date']
-            repo.commit(text=ctx.description(), user=user,
+            node = repo.commit(text=ctx.description(), user=user,
                         date=date, extra=extra, editor=editor)
+            if node is None:
+                ui.status(_('graft for revision %s is empty\n') % ctx.rev())
     finally:
         wlock.release()