tests/test-diff-reverse
author Dirkjan Ochtman <dirkjan@ochtman.nl>
Thu, 17 Jun 2010 15:51:27 +0200
changeset 11377 9916263d9a60
parent 9857 24bc6e414610
permissions -rwxr-xr-x
patch: inline small, single-use 'write' function

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