Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/mq.py @ 4172:1df1baf2002e
fix qclone to a remote repo
This fixes issue467. -stable still needs something like revision
55578a8d7e84 - mq: allow push if -r is given explicitly.
In the meantime, hg qpop -a; hg qclone . ssh://... is a workaround.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 10 Mar 2007 22:03:21 -0300 |
parents | a9ee6c53af8d |
children | 7307d2e98b32 |
comparison
equal
deleted
inserted
replaced
4171:7b5723c95a82 | 4172:1df1baf2002e |
---|---|
1502 qbase, destrev = None, None | 1502 qbase, destrev = None, None |
1503 if sr.local(): | 1503 if sr.local(): |
1504 if sr.mq.applied: | 1504 if sr.mq.applied: |
1505 qbase = revlog.bin(sr.mq.applied[0].rev) | 1505 qbase = revlog.bin(sr.mq.applied[0].rev) |
1506 if not hg.islocal(dest): | 1506 if not hg.islocal(dest): |
1507 destrev = sr.parents(qbase)[0] | 1507 heads = dict.fromkeys(sr.heads()) |
1508 for h in sr.heads(qbase): | |
1509 del heads[h] | |
1510 destrev = heads.keys() | |
1511 destrev.append(sr.changelog.parents(qbase)[0]) | |
1508 ui.note(_('cloning main repo\n')) | 1512 ui.note(_('cloning main repo\n')) |
1509 sr, dr = hg.clone(ui, sr, dest, | 1513 sr, dr = hg.clone(ui, sr, dest, |
1510 pull=opts['pull'], | 1514 pull=opts['pull'], |
1511 rev=destrev, | 1515 rev=destrev, |
1512 update=False, | 1516 update=False, |