test-mq-qqueue
67 lines
| 1007 B
| text/plain
|
TextLexer
/ tests / test-mq-qqueue
Henrik Stuart
|
r11229 | #!/bin/sh | ||
echo "[extensions]" >> $HGRCPATH | ||||
echo "mq=" >> $HGRCPATH | ||||
hg init foo | ||||
cd foo | ||||
echo a > a | ||||
hg ci -qAm a | ||||
echo %% default queue | ||||
hg qqueue | ||||
echo b > a | ||||
hg qnew -fgDU somestuff | ||||
echo %% applied patches in default queue | ||||
hg qap | ||||
echo %% try to change patch \(create succeeds, switch fails\) | ||||
hg qqueue foo --create | ||||
hg qqueue | ||||
echo %% empty default queue | ||||
hg qpop | ||||
echo %% switch queue | ||||
hg qqueue foo | ||||
hg qqueue | ||||
"Yann E. MORIN"
|
r11767 | echo %% list queues, quiet | ||
hg qqueue --quiet | ||||
Cédric Duval
|
r11271 | echo %% fail creating queue with already existing name | ||
hg qqueue --create foo | ||||
hg qqueue | ||||
Henrik Stuart
|
r11229 | echo %% unapplied patches | ||
hg qun | ||||
echo c > a | ||||
hg qnew -fgDU otherstuff | ||||
echo %% fail switching back | ||||
hg qqueue patches | ||||
echo %% fail deleting current | ||||
hg qqueue foo --delete | ||||
echo %% switch back and delete foo | ||||
hg qpop -a | ||||
hg qqueue patches | ||||
hg qqueue foo --delete | ||||
hg qqueue | ||||
Henrik Stuart
|
r11270 | |||
echo %% tricky cases | ||||
hg qqueue store --create | ||||
Henrik Stuart
|
r11272 | hg qnew journal | ||
Henrik Stuart
|
r11270 | hg qqueue | ||
hg qpop -a | ||||
hg qqueue patches | ||||
hg qun | ||||
echo %% invalid names | ||||
hg qqueue test/../../bar --create | ||||
hg qqueue . --create | ||||
Henrik Stuart
|
r11229 | cd .. | ||