diff -r e29557d687c9 -r 4b0c9c674707 mercurial/commands.py --- 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