comparison tests/test-diff-reverse @ 9857:24bc6e414610

diff: change --inverse to --reverse This fixes an incompatibility with patch(1), which also uses --reverse for reversed diffs. The --inverse flag was added in 3f522d2fa633. That name was chosen over --reverse since it was thought that --reverse would make --rev ambiguous. It turns out that both flags can co-exist, with the cost that --rev can no longer be shortened to --r and --re. Since one can always use the short -r option, this is not a real problem.
author Martin Geisler <mg@lazybytes.net>
date Sat, 14 Nov 2009 14:21:53 +0100
parents tests/test-diff-inverse@3f522d2fa633
children
comparison
equal deleted inserted replaced
9856:ed362d41d1f6 9857:24bc6e414610
1 #!/bin/sh
2
3 hg init
4 cat > a <<EOF
5 a
6 b
7 c
8 EOF
9 hg ci -Am adda
10
11 cat > a <<EOF
12 d
13 e
14 f
15 EOF
16 hg ci -m moda
17
18 hg diff --reverse -r0 -r1
19
20 cat >> a <<EOF
21 g
22 h
23 EOF
24 hg diff --reverse --nodates