Mercurial > hg-stable
diff tests/test-mq-qnew @ 7296:695383442347
mq: put qnew tests into own file, fold in qnew-twice
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 30 Oct 2008 12:31:24 -0700 |
parents | tests/test-mq-qnew-twice@61fcd9fac434 |
children | bd6deb7525f4 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-mq-qnew Thu Oct 30 12:31:24 2008 -0700 @@ -0,0 +1,47 @@ +#!/bin/sh + +echo "[extensions]" >> $HGRCPATH +echo "mq=" >> $HGRCPATH + +hg init mq +cd mq + +echo a > a +hg ci -Ama + +echo '% qnew should refuse bad patch names' +hg qnew series +hg qnew status +hg qnew guards +hg qnew .hgignore + +hg qinit -c + +echo '% qnew with uncommitted changes' +echo a > somefile +hg add somefile +hg qnew uncommitted.patch +hg st +hg qseries +hg revert --no-backup somefile +rm somefile + +echo '% qnew implies add' +hg qnew test.patch +hg -R .hg/patches st + +echo '% qnew missing' +hg qnew missing.patch missing + +echo '% qnew -m' +hg qnew -m 'foo bar' mtest.patch +cat .hg/patches/mtest.patch + +echo '% qnew twice' +hg qnew first.patch +hg qnew first.patch + +touch ../first.patch +hg qimport ../first.patch + +exit 0