test-extdiff
30 lines
| 541 B
| text/plain
|
TextLexer
/ tests / test-extdiff
Vadim Gelfer
|
r2906 | #!/bin/sh | ||
HGRCPATH=$HGTMP/.hgrc; export HGRCPATH | ||||
echo "[extensions]" >> $HGTMP/.hgrc | ||||
echo "extdiff=" >> $HGTMP/.hgrc | ||||
hg init a | ||||
cd a | ||||
echo a > a | ||||
hg add | ||||
Danek Duvall
|
r2932 | diff -N /dev/null /dev/null 2> /dev/null | ||
if [ $? -ne 0 ]; then | ||||
opt="-p gdiff" | ||||
fi | ||||
hg extdiff -o -Nr $opt | ||||
Vadim Gelfer
|
r2906 | |||
echo "[extdiff]" >> $HGTMP/.hgrc | ||||
echo "cmd.falabala=echo" >> $HGTMP/.hgrc | ||||
echo "opts.falabala=diffing" >> $HGTMP/.hgrc | ||||
hg falabala | ||||
hg help falabala | ||||
hg ci -d '0 0' -mtest1 | ||||
echo b >> a | ||||
hg ci -d '1 0' -mtest2 | ||||
Thomas Arendsen Hein
|
r2912 | hg falabala -r 0:1 || echo "diff-like tools yield a non-zero exit code" | ||