Show More
@@ -283,15 +283,11 b' def newcommit(repo, phase, *args, **kwar' | |||||
283 | phase = phases.secret |
|
283 | phase = phases.secret | |
284 | if phase is not None: |
|
284 | if phase is not None: | |
285 | backup = repo.ui.backupconfig('phases', 'new-commit') |
|
285 | backup = repo.ui.backupconfig('phases', 'new-commit') | |
286 | # Marking the repository as committing an mq patch can be used |
|
|||
287 | # to optimize operations like branchtags(). |
|
|||
288 | repo._committingpatch = True |
|
|||
289 | try: |
|
286 | try: | |
290 | if phase is not None: |
|
287 | if phase is not None: | |
291 | repo.ui.setconfig('phases', 'new-commit', phase) |
|
288 | repo.ui.setconfig('phases', 'new-commit', phase) | |
292 | return repo.commit(*args, **kwargs) |
|
289 | return repo.commit(*args, **kwargs) | |
293 | finally: |
|
290 | finally: | |
294 | repo._committingpatch = False |
|
|||
295 | if phase is not None: |
|
291 | if phase is not None: | |
296 | repo.ui.restoreconfig(backup) |
|
292 | repo.ui.restoreconfig(backup) | |
297 |
|
293 |
General Comments 0
You need to be logged in to leave comments.
Login now