hgext/mq.py
branchstable
changeset 16290 9518cb55c822
parent 16278 900eee0778d1
child 16291 9952ac7e0968
child 16303 7ee8aa662937
--- 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'):