mercurial/cmdutil.py
changeset 17059 fba17a64fa49
parent 16937 5487088f0d43
parent 17049 2440822446ce
child 17180 ae0629161090
--- 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: