mercurial/commands.py
changeset 6336 4b0c9c674707
parent 6321 55ba3bc5b8fd
child 6346 8e3b651382f5
--- a/mercurial/commands.py	Fri Mar 21 00:55:53 2008 +0100
+++ b/mercurial/commands.py	Fri Mar 21 11:06:02 2008 +0100
@@ -547,7 +547,11 @@
     def commitfunc(ui, repo, files, message, match, opts):
         return repo.commit(files, message, opts['user'], opts['date'], match,
                            force_editor=opts.get('force_editor'))
+
+    heads = repo.changelog.heads()
     cmdutil.commit(ui, repo, commitfunc, pats, opts)
+    if len(repo.changelog.heads()) > len(heads):
+        ui.status(_('created new head\n'))
 
 def copy(ui, repo, *pats, **opts):
     """mark files as copied for the next commit