Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
7295:66d0fc108044 | 7296:695383442347 |
---|---|
1 #!/bin/sh | |
2 | |
3 echo "[extensions]" >> $HGRCPATH | |
4 echo "mq=" >> $HGRCPATH | |
5 | |
6 hg init mq | |
7 cd mq | |
8 | |
9 echo a > a | |
10 hg ci -Ama | |
11 | |
12 echo '% qnew should refuse bad patch names' | |
13 hg qnew series | |
14 hg qnew status | |
15 hg qnew guards | |
16 hg qnew .hgignore | |
17 | |
18 hg qinit -c | |
19 | |
20 echo '% qnew with uncommitted changes' | |
21 echo a > somefile | |
22 hg add somefile | |
23 hg qnew uncommitted.patch | |
24 hg st | |
25 hg qseries | |
26 hg revert --no-backup somefile | |
27 rm somefile | |
28 | |
29 echo '% qnew implies add' | |
30 hg qnew test.patch | |
31 hg -R .hg/patches st | |
32 | |
33 echo '% qnew missing' | |
34 hg qnew missing.patch missing | |
35 | |
36 echo '% qnew -m' | |
37 hg qnew -m 'foo bar' mtest.patch | |
38 cat .hg/patches/mtest.patch | |
39 | |
40 echo '% qnew twice' | |
41 hg qnew first.patch | |
42 hg qnew first.patch | |
43 | |
44 touch ../first.patch | |
45 hg qimport ../first.patch | |
46 | |
47 exit 0 |