diff mercurial/cmdutil.py @ 17049:2440822446ce stable

amend: disable hooks when creating intermediate commit (issue3501)
author Idan Kamara <idankk86@gmail.com>
date Sat, 23 Jun 2012 19:57:29 +0300
parents 48b1674ac1e7
children fba17a64fa49
line wrap: on
line diff
--- 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: