Comments
Patch
@@ -928,11 +928,16 @@ class queue(object):
if qfinished and repo.ui.configbool('mq', 'secret', False):
# only use this logic when the secret option is added
oldqbase = repo[qfinished[0]]
tphase = repo.ui.config('phases', 'new-commit', phases.draft)
if oldqbase.phase() > tphase and oldqbase.p1().phase() <= tphase:
- phases.advanceboundary(repo, tphase, qfinished)
+ tr = repo.transaction('qfinish')
+ try:
+ phases.advanceboundary(repo, tphase, qfinished)
+ tr.close()
+ finally:
+ tr.release()
def delete(self, repo, patches, opts):
if not patches and not opts.get('rev'):
raise util.Abort(_('qdelete requires at least one revision or '
'patch name'))