##// END OF EJS Templates
tests: unify test-diff-reverse
Adrian Buehlmann -
r12139:5a69ea8d default
parent child Browse files
Show More
@@ -1,24 +1,44 b''
1 #!/bin/sh
1 $ hg init
2
2
3 hg init
3 $ cat > a <<EOF
4 cat > a <<EOF
4 > a
5 a
5 > b
6 b
6 > c
7 c
7 > EOF
8 EOF
8 $ hg ci -Am adda
9 hg ci -Am adda
9 adding a
10
11 $ cat > a <<EOF
12 > d
13 > e
14 > f
15 > EOF
16 $ hg ci -m moda
10
17
11 cat > a <<EOF
18 $ hg diff --reverse -r0 -r1
12 d
19 diff -r 2855cdcfcbb7 -r 8e1805a3cf6e a
13 e
20 --- a/a Thu Jan 01 00:00:00 1970 +0000
14 f
21 +++ b/a Thu Jan 01 00:00:00 1970 +0000
15 EOF
22 @@ -1,3 +1,3 @@
16 hg ci -m moda
23 -d
24 -e
25 -f
26 +a
27 +b
28 +c
17
29
18 hg diff --reverse -r0 -r1
30 $ cat >> a <<EOF
31 > g
32 > h
33 > EOF
34 $ hg diff --reverse --nodates
35 diff -r 2855cdcfcbb7 a
36 --- a/a
37 +++ b/a
38 @@ -1,5 +1,3 @@
39 d
40 e
41 f
42 -g
43 -h
19
44
20 cat >> a <<EOF
21 g
22 h
23 EOF
24 hg diff --reverse --nodates
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now