test-abort-checkin
22 lines
| 414 B
| text/plain
|
TextLexer
/ tests / test-abort-checkin
Thomas Arendsen Hein
|
r2726 | #!/bin/sh | ||
HGRCPATH=$HGTMP/.hgrc; export HGRCPATH | ||||
echo "[extensions]" >> $HGTMP/.hgrc | ||||
echo "mq=" >> $HGTMP/.hgrc | ||||
Danek Duvall
|
r2843 | cat > $HGTMP/false <<EOF | ||
#!/bin/sh | ||||
exit 1 | ||||
EOF | ||||
chmod +x $HGTMP/false | ||||
Thomas Arendsen Hein
|
r2726 | |||
hg init foo | ||||
cd foo | ||||
echo foo > foo | ||||
hg add foo | ||||
# mq may keep a reference to the repository so __del__ will not be called | ||||
# and .hg/journal.dirstate will not be deleted: | ||||
Danek Duvall
|
r2843 | HGEDITOR=$HGTMP/false hg ci | ||
HGEDITOR=$HGTMP/false hg ci | ||||
Thomas Arendsen Hein
|
r2726 | |||
exit 0 | ||||