tests/test-diff-reverse
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 19 Mar 2010 12:45:39 +0100
branchstable
changeset 10736 a528a1046dba
parent 9857 24bc6e414610
permissions -rwxr-xr-x
patch: second line of a context diff starts with '--- ', not '+++ '

#!/bin/sh

hg init
cat > a <<EOF
a
b
c
EOF
hg ci -Am adda

cat > a <<EOF
d
e
f
EOF
hg ci -m moda

hg diff --reverse -r0 -r1

cat >> a <<EOF
g
h
EOF
hg diff --reverse --nodates