Mercurial > hg
changeset 4171: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 | 7b5723c95a82 |
children | b36bd7534c08 |
files | hgext/mq.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Sat Mar 10 22:03:20 2007 -0300 +++ b/hgext/mq.py Sat Mar 10 22:03:21 2007 -0300 @@ -1504,7 +1504,11 @@ if sr.mq.applied: qbase = revlog.bin(sr.mq.applied[0].rev) if not hg.islocal(dest): - destrev = sr.parents(qbase)[0] + heads = dict.fromkeys(sr.heads()) + for h in sr.heads(qbase): + del heads[h] + destrev = heads.keys() + destrev.append(sr.changelog.parents(qbase)[0]) ui.note(_('cloning main repo\n')) sr, dr = hg.clone(ui, sr, dest, pull=opts['pull'],