##// END OF EJS Templates
tests: unify test-mq
tests: unify test-mq

File last commit:

r11767:9b771b4c default
r11894:a15936ac default
Show More
test-mq-qqueue
67 lines | 1007 B | text/plain | TextLexer
Henrik Stuart
mq: support multiple patch queues using qqueue
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"
mq/qqueue: --list does not print (active) with --quiet...
r11767 echo %% list queues, quiet
hg qqueue --quiet
Cédric Duval
mq: prevent the creation of a queue whose name is already taken...
r11271 echo %% fail creating queue with already existing name
hg qqueue --create foo
hg qqueue
Henrik Stuart
mq: support multiple patch queues using qqueue
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
mq: fix naming issues for qqueue directories
r11270
echo %% tricky cases
hg qqueue store --create
Henrik Stuart
mq: better qqueue test for troublesome names
r11272 hg qnew journal
Henrik Stuart
mq: fix naming issues for qqueue directories
r11270 hg qqueue
hg qpop -a
hg qqueue patches
hg qun
echo %% invalid names
hg qqueue test/../../bar --create
hg qqueue . --create
Henrik Stuart
mq: support multiple patch queues using qqueue
r11229 cd ..