Mercurial > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
17048:15d4d475de9e | 17049:2440822446ce |
---|---|
1299 | 1299 |
1300 wlock = repo.wlock() | 1300 wlock = repo.wlock() |
1301 try: | 1301 try: |
1302 # First, do a regular commit to record all changes in the working | 1302 # First, do a regular commit to record all changes in the working |
1303 # directory (if there are any) | 1303 # directory (if there are any) |
1304 node = commit(ui, repo, commitfunc, pats, opts) | 1304 ui.callhooks = False |
1305 try: | |
1306 node = commit(ui, repo, commitfunc, pats, opts) | |
1307 finally: | |
1308 ui.callhooks = True | |
1305 ctx = repo[node] | 1309 ctx = repo[node] |
1306 | 1310 |
1307 # Participating changesets: | 1311 # Participating changesets: |
1308 # | 1312 # |
1309 # node/ctx o - new (intermediate) commit that contains changes from | 1313 # node/ctx o - new (intermediate) commit that contains changes from |