qfinish: set all qfinished patch as draft, not only qbase
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 19 Jan 2012 11:30:37 +0100
changeset 15931 44b5de2d1876
parent 15930 2dc599583ebe
child 15932 4154338f0bc0
qfinish: set all qfinished patch as draft, not only qbase Fix a silly bug.
hgext/mq.py
--- a/hgext/mq.py	Thu Jan 19 10:07:13 2012 +0100
+++ b/hgext/mq.py	Thu Jan 19 11:30:37 2012 +0100
@@ -822,7 +822,7 @@
         if qfinished:
             oldqbase = repo[qfinished[0]]
             if oldqbase.p1().phase() < phases.secret:
-                phases.advanceboundary(repo, phases.draft, [oldqbase.node()])
+                phases.advanceboundary(repo, phases.draft, qfinished)
 
     def delete(self, repo, patches, opts):
         if not patches and not opts.get('rev'):