equal
deleted
inserted
replaced
|
1 $ hg init |
|
2 |
|
3 $ cat > a <<EOF |
|
4 > a |
|
5 > b |
|
6 > c |
|
7 > EOF |
|
8 $ 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 |
|
17 |
|
18 $ hg diff --reverse -r0 -r1 |
|
19 diff -r 2855cdcfcbb7 -r 8e1805a3cf6e a |
|
20 --- a/a Thu Jan 01 00:00:00 1970 +0000 |
|
21 +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
22 @@ -1,3 +1,3 @@ |
|
23 -d |
|
24 -e |
|
25 -f |
|
26 +a |
|
27 +b |
|
28 +c |
|
29 |
|
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 |
|
44 |