--- a/hgext/mq.py Wed Mar 21 22:16:12 2012 -0400
+++ b/hgext/mq.py Sat Mar 24 12:06:49 2012 +0100
@@ -843,8 +843,9 @@
if qfinished and repo.ui.configbool('mq', 'secret', False):
# only use this logic when the secret option is added
oldqbase = repo[qfinished[0]]
- if oldqbase.p1().phase() < phases.secret:
- phases.advanceboundary(repo, phases.draft, qfinished)
+ tphase = repo.ui.config('phases', 'new-commit', phases.draft)
+ if oldqbase.phase() > tphase and oldqbase.p1().phase() <= tphase:
+ phases.advanceboundary(repo, tphase, qfinished)
def delete(self, repo, patches, opts):
if not patches and not opts.get('rev'):