tests/test-abort-checkin
author Brendan Cully <brendan@kublai.com>
Thu, 03 Aug 2006 11:09:12 -0700
changeset 2780 ee48e5ef8753
parent 2726 6bd351194a96
child 2843 0b9ac7dfcf56
permissions -rwxr-xr-x
Use StatusEntry class instead of repeated status line parsing. This small cleanup abstracts out repeated instances of (rev, name) = applied[x].split(':'), making it easier to use applied or change the status file format.

#!/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