Mercurial > hg
comparison hgext/mq.py @ 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 | 949e607ac544 |
children | f3c3965fa0ff |
comparison
equal
deleted
inserted
replaced
6379:d2bb66a8a435 | 6380:a632a9a57821 |
---|---|
1614 for h in sr.heads(qbase): | 1614 for h in sr.heads(qbase): |
1615 del heads[h] | 1615 del heads[h] |
1616 destrev = heads.keys() | 1616 destrev = heads.keys() |
1617 destrev.append(sr.changelog.parents(qbase)[0]) | 1617 destrev.append(sr.changelog.parents(qbase)[0]) |
1618 elif sr.capable('lookup'): | 1618 elif sr.capable('lookup'): |
1619 qbase = sr.lookup('qbase') | 1619 try: |
1620 qbase = sr.lookup('qbase') | |
1621 except RepoError: | |
1622 pass | |
1620 ui.note(_('cloning main repo\n')) | 1623 ui.note(_('cloning main repo\n')) |
1621 sr, dr = hg.clone(ui, sr.url(), dest, | 1624 sr, dr = hg.clone(ui, sr.url(), dest, |
1622 pull=opts['pull'], | 1625 pull=opts['pull'], |
1623 rev=destrev, | 1626 rev=destrev, |
1624 update=False, | 1627 update=False, |