##// END OF EJS Templates
Add test mq keeping a reference to localrepo which can't remove journal on exit.
Add test mq keeping a reference to localrepo which can't remove journal on exit.

File last commit:

r2726:6bd35119 default
r2726:6bd35119 default
Show More
test-abort-checkin
17 lines | 332 B | text/plain | TextLexer
#!/bin/sh
HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
echo "[extensions]" >> $HGTMP/.hgrc
echo "mq=" >> $HGTMP/.hgrc
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:
HGEDITOR=false hg ci
HGEDITOR=false hg ci
exit 0