diff -r d5422faf648c -r fba17a64fa49 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Fri Jun 29 00:01:19 2012 +0200 +++ b/mercurial/cmdutil.py Fri Jun 29 00:40:52 2012 -0500 @@ -1301,7 +1301,11 @@ try: # First, do a regular commit to record all changes in the working # directory (if there are any) - node = commit(ui, repo, commitfunc, pats, opts) + ui.callhooks = False + try: + node = commit(ui, repo, commitfunc, pats, opts) + finally: + ui.callhooks = True ctx = repo[node] # Participating changesets: