##// END OF EJS Templates
Solaris portability fixes
Danek Duvall -
r2932:d77022db default
parent child Browse files
Show More
@@ -1,37 +1,37
1 #!/bin/sh
1 #!/bin/sh
2
2
3 set -e
3 set -e
4
4
5 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
5 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
6 echo "[extensions]" >> $HGTMP/.hgrc
6 echo "[extensions]" >> $HGTMP/.hgrc
7 echo "hbisect=" >> $HGTMP/.hgrc
7 echo "hbisect=" >> $HGTMP/.hgrc
8
8
9 echo % init
9 echo % init
10 hg init
10 hg init
11
11
12 echo % committing changes
12 echo % committing changes
13 count=0
13 count=0
14 echo > a
14 echo > a
15 while test $count -lt 32 ; do
15 while test $count -lt 32 ; do
16 echo 'a' >> a
16 echo 'a' >> a
17 test $count -eq 0 && hg add
17 test $count -eq 0 && hg add
18 hg ci -m "msg $count" -d "$count 0"
18 hg ci -m "msg $count" -d "$count 0"
19 echo % committed changeset $count
19 echo % committed changeset $count
20 count=$(( $count + 1 ))
20 count=`expr $count + 1`
21 done
21 done
22
22
23 echo % log
23 echo % log
24 hg log
24 hg log
25
25
26 echo % hg up -C
26 echo % hg up -C
27 hg up -C
27 hg up -C
28
28
29 echo % bisect test
29 echo % bisect test
30 hg bisect init
30 hg bisect init
31 hg bisect bad
31 hg bisect bad
32 hg bisect good 1
32 hg bisect good 1
33 hg bisect good
33 hg bisect good
34 hg bisect good
34 hg bisect good
35 hg bisect good
35 hg bisect good
36 hg bisect bad
36 hg bisect bad
37 hg bisect good
37 hg bisect good
@@ -1,26 +1,30
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 "extdiff=" >> $HGTMP/.hgrc
5 echo "extdiff=" >> $HGTMP/.hgrc
6
6
7 hg init a
7 hg init a
8 cd a
8 cd a
9 echo a > a
9 echo a > a
10 hg add
10 hg add
11 hg extdiff -o -Nr
11 diff -N /dev/null /dev/null 2> /dev/null
12 if [ $? -ne 0 ]; then
13 opt="-p gdiff"
14 fi
15 hg extdiff -o -Nr $opt
12
16
13 echo "[extdiff]" >> $HGTMP/.hgrc
17 echo "[extdiff]" >> $HGTMP/.hgrc
14 echo "cmd.falabala=echo" >> $HGTMP/.hgrc
18 echo "cmd.falabala=echo" >> $HGTMP/.hgrc
15 echo "opts.falabala=diffing" >> $HGTMP/.hgrc
19 echo "opts.falabala=diffing" >> $HGTMP/.hgrc
16
20
17 hg falabala
21 hg falabala
18
22
19 hg help falabala
23 hg help falabala
20
24
21 hg ci -d '0 0' -mtest1
25 hg ci -d '0 0' -mtest1
22
26
23 echo b >> a
27 echo b >> a
24 hg ci -d '1 0' -mtest2
28 hg ci -d '1 0' -mtest2
25
29
26 hg falabala -r 0:1 || echo "diff-like tools yield a non-zero exit code"
30 hg falabala -r 0:1 || echo "diff-like tools yield a non-zero exit code"
General Comments 0
You need to be logged in to leave comments. Login now