928 if qfinished and repo.ui.configbool('mq', 'secret', False): |
928 if qfinished and repo.ui.configbool('mq', 'secret', False): |
929 # only use this logic when the secret option is added |
929 # only use this logic when the secret option is added |
930 oldqbase = repo[qfinished[0]] |
930 oldqbase = repo[qfinished[0]] |
931 tphase = repo.ui.config('phases', 'new-commit', phases.draft) |
931 tphase = repo.ui.config('phases', 'new-commit', phases.draft) |
932 if oldqbase.phase() > tphase and oldqbase.p1().phase() <= tphase: |
932 if oldqbase.phase() > tphase and oldqbase.p1().phase() <= tphase: |
933 phases.advanceboundary(repo, tphase, qfinished) |
933 tr = repo.transaction('qfinish') |
|
934 try: |
|
935 phases.advanceboundary(repo, tphase, qfinished) |
|
936 tr.close() |
|
937 finally: |
|
938 tr.release() |
934 |
939 |
935 def delete(self, repo, patches, opts): |
940 def delete(self, repo, patches, opts): |
936 if not patches and not opts.get('rev'): |
941 if not patches and not opts.get('rev'): |
937 raise util.Abort(_('qdelete requires at least one revision or ' |
942 raise util.Abort(_('qdelete requires at least one revision or ' |
938 'patch name')) |
943 'patch name')) |