qclone: ignore local qbase if secret
authorMatt Mackall <mpm@selenic.com>
Wed, 18 Jan 2012 19:16:01 -0600
changeset 15924 3f132207e92f
parent 15923 4b088ae9d47a
child 15925 f9fc46698352
qclone: ignore local qbase if secret
hgext/mq.py
--- a/hgext/mq.py	Wed Jan 18 18:14:55 2012 -0600
+++ b/hgext/mq.py	Wed Jan 18 19:16:01 2012 -0600
@@ -2078,7 +2078,7 @@
                            ' (see init --mq)'))
     qbase, destrev = None, None
     if sr.local():
-        if sr.mq.applied:
+        if sr.mq.applied and sr[qbase].phase() != phases.secret:
             qbase = sr.mq.applied[0].node
             if not hg.islocal(dest):
                 heads = set(sr.heads())