branch | stable |
changeset 17049 | 2440822446ce |
parent 16678 | 48b1674ac1e7 |
child 17059 | fba17a64fa49 |
--- a/mercurial/cmdutil.py Sat Jun 23 19:57:07 2012 +0300 +++ b/mercurial/cmdutil.py Sat Jun 23 19:57:29 2012 +0300 @@ -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: