comparison tests/test-abort-checkin @ 2831:0b9ac7dfcf56

Fix some tests for portability.
author Danek Duvall <danek.duvall@sun.com>
date Wed, 09 Aug 2006 12:05:40 -0700
parents 6bd351194a96
children 61fcd9fac434
comparison
equal deleted inserted replaced
2830:49988d9f0758 2831:0b9ac7dfcf56
1 #!/bin/sh 1 #!/bin/sh
2 2
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH 3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
4 echo "[extensions]" >> $HGTMP/.hgrc 4 echo "[extensions]" >> $HGTMP/.hgrc
5 echo "mq=" >> $HGTMP/.hgrc 5 echo "mq=" >> $HGTMP/.hgrc
6 cat > $HGTMP/false <<EOF
7 #!/bin/sh
8 exit 1
9 EOF
10 chmod +x $HGTMP/false
6 11
7 hg init foo 12 hg init foo
8 cd foo 13 cd foo
9 echo foo > foo 14 echo foo > foo
10 hg add foo 15 hg add foo
11 16
12 # mq may keep a reference to the repository so __del__ will not be called 17 # mq may keep a reference to the repository so __del__ will not be called
13 # and .hg/journal.dirstate will not be deleted: 18 # and .hg/journal.dirstate will not be deleted:
14 HGEDITOR=false hg ci 19 HGEDITOR=$HGTMP/false hg ci
15 HGEDITOR=false hg ci 20 HGEDITOR=$HGTMP/false hg ci
16 21
17 exit 0 22 exit 0