##// END OF EJS Templates
mq: remove unused repo._committingpatch-related code...
Brodie Rao -
r19752:11fdf9f7 default
parent child Browse files
Show More
@@ -283,15 +283,11 b' def newcommit(repo, phase, *args, **kwar'
283 283 phase = phases.secret
284 284 if phase is not None:
285 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 286 try:
290 287 if phase is not None:
291 288 repo.ui.setconfig('phases', 'new-commit', phase)
292 289 return repo.commit(*args, **kwargs)
293 290 finally:
294 repo._committingpatch = False
295 291 if phase is not None:
296 292 repo.ui.restoreconfig(backup)
297 293
General Comments 0
You need to be logged in to leave comments. Login now