Mercurial > hg
diff tests/test-mq @ 4090:785ad8cd1d31
qclone: don't call reposetup manually
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 15 Feb 2007 08:44:08 -0200 |
parents | 8ee983e3d461 |
children | 49237d6ae97d 7307d2e98b32 |
line wrap: on
line diff
--- a/tests/test-mq Thu Feb 15 08:14:03 2007 -0200 +++ b/tests/test-mq Thu Feb 15 08:44:08 2007 -0200 @@ -264,4 +264,42 @@ hg log hg strip 1 2>&1 | sed 's/\(saving bundle to \).*/\1/' hg log +cd .. +echo '% qclone' +qlog() +{ + echo 'main repo:' + hg log --template ' rev {rev}: {desc}\n' + echo 'patch repo:' + hg -R .hg/patches log --template ' rev {rev}: {desc}\n' +} +hg init qclonesource +cd qclonesource +echo foo > foo +hg add foo +hg ci -m 'add foo' +hg qinit -c +hg qnew patch1 +echo bar >> foo +hg qrefresh -m 'change foo' +hg qci -m checkpoint +qlog +cd .. + +# repo with patches applied +hg qclone qclonesource qclonedest +cd qclonedest +qlog +cd .. + +# repo with patches unapplied +cd qclonesource +hg qpop -a +qlog +cd .. +hg qclone qclonesource qclonedest2 +cd qclonedest2 +qlog +cd .. +