changeset 6380:a632a9a57821

qclone: do not abort if remote hasn't enabled mq (issue1040)
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 24 Mar 2008 16:17:19 -0300
parents d2bb66a8a435
children 0b89315d5de2
files hgext/mq.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Mon Mar 24 13:45:01 2008 -0300
+++ b/hgext/mq.py	Mon Mar 24 16:17:19 2008 -0300
@@ -1616,7 +1616,10 @@
                 destrev = heads.keys()
                 destrev.append(sr.changelog.parents(qbase)[0])
     elif sr.capable('lookup'):
-        qbase = sr.lookup('qbase')
+        try:
+            qbase = sr.lookup('qbase')
+        except RepoError:
+            pass
     ui.note(_('cloning main repo\n'))
     sr, dr = hg.clone(ui, sr.url(), dest,
                       pull=opts['pull'],