842 patches = self._revpatches(repo, sorted(revs)) |
842 patches = self._revpatches(repo, sorted(revs)) |
843 qfinished = self._cleanup(patches, len(patches)) |
843 qfinished = self._cleanup(patches, len(patches)) |
844 if qfinished and repo.ui.configbool('mq', 'secret', False): |
844 if qfinished and repo.ui.configbool('mq', 'secret', False): |
845 # only use this logic when the secret option is added |
845 # only use this logic when the secret option is added |
846 oldqbase = repo[qfinished[0]] |
846 oldqbase = repo[qfinished[0]] |
847 if oldqbase.p1().phase() < phases.secret: |
847 tphase = repo.ui.config('phases', 'new-commit', phases.draft) |
848 phases.advanceboundary(repo, phases.draft, qfinished) |
848 if oldqbase.phase() > tphase and oldqbase.p1().phase() <= tphase: |
|
849 phases.advanceboundary(repo, tphase, qfinished) |
849 |
850 |
850 def delete(self, repo, patches, opts): |
851 def delete(self, repo, patches, opts): |
851 if not patches and not opts.get('rev'): |
852 if not patches and not opts.get('rev'): |
852 raise util.Abort(_('qdelete requires at least one revision or ' |
853 raise util.Abort(_('qdelete requires at least one revision or ' |
853 'patch name')) |
854 'patch name')) |