mq: make qclone ask remote source repo for qbase using lookup protocol
authorPeter Arrenbrecht <peter.arrenbrecht@gmail.com>
Thu, 21 Feb 2008 23:00:50 +0100
changeset 6164 0c2b443fb3c3
parent 6163 1f733c2f0165
child 6165 0d36de68669c
mq: make qclone ask remote source repo for qbase using lookup protocol
hgext/mq.py
--- a/hgext/mq.py	Fri Feb 22 21:18:48 2008 +0100
+++ b/hgext/mq.py	Thu Feb 21 23:00:50 2008 +0100
@@ -1610,6 +1610,8 @@
                     del heads[h]
                 destrev = heads.keys()
                 destrev.append(sr.changelog.parents(qbase)[0])
+    elif sr.capable('lookup'):
+        qbase = sr.lookup('qbase')
     ui.note(_('cloning main repo\n'))
     sr, dr = hg.clone(ui, sr.url(), dest,
                       pull=opts['pull'],