changeset 6164:0c2b443fb3c3

mq: make qclone ask remote source repo for qbase using lookup protocol
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Thu, 21 Feb 2008 23:00:50 +0100
parents 1f733c2f0165
children 0d36de68669c
files hgext/mq.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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'],