tests/test-mq-qdiff.out
branchstable
changeset 12795 3cb0559e44d0
parent 12793 469850088fc1
parent 12794 6bf8d48bec8e
child 12796 bc69ba99e34b
equal deleted inserted replaced
12793:469850088fc1 12795:3cb0559e44d0
     1 % init
       
     2 % commit
       
     3 adding base
       
     4 % qnew mqbase
       
     5 % qrefresh
       
     6 % qdiff
       
     7 diff -r 67e992f2c4f3 base
       
     8 --- a/base
       
     9 +++ b/base
       
    10 @@ -1,1 +1,1 @@
       
    11 -base
       
    12 +patched
       
    13 % qdiff dirname
       
    14 diff -r 67e992f2c4f3 base
       
    15 --- a/base
       
    16 +++ b/base
       
    17 @@ -1,1 +1,1 @@
       
    18 -base
       
    19 +patched
       
    20 % qdiff filename
       
    21 diff -r 67e992f2c4f3 base
       
    22 --- a/base
       
    23 +++ b/base
       
    24 @@ -1,1 +1,1 @@
       
    25 -base
       
    26 +patched
       
    27 % revert
       
    28 % qpop
       
    29 popping mqbase
       
    30 patch queue now empty
       
    31 % qdelete mqbase
       
    32 % commit 2
       
    33 adding lines
       
    34 % qnew 2
       
    35 % qdiff -U 1
       
    36 diff -r 35fb829491c1 lines
       
    37 --- a/lines
       
    38 +++ b/lines
       
    39 @@ -1,1 +1,3 @@
       
    40 +
       
    41 +
       
    42  1
       
    43 @@ -4,4 +6,4 @@
       
    44  4
       
    45 -hello world
       
    46 -goodbye world
       
    47 +hello  world
       
    48 +     goodbye world
       
    49  7
       
    50 % qdiff -b
       
    51 diff -r 35fb829491c1 lines
       
    52 --- a/lines
       
    53 +++ b/lines
       
    54 @@ -1,9 +1,11 @@
       
    55 +
       
    56 +
       
    57  1
       
    58  2
       
    59  3
       
    60  4
       
    61  hello world
       
    62 -goodbye world
       
    63 +     goodbye world
       
    64  7
       
    65  8
       
    66  9
       
    67 % qdiff -U 1 -B
       
    68 diff -r 35fb829491c1 lines
       
    69 --- a/lines
       
    70 +++ b/lines
       
    71 @@ -4,4 +6,4 @@
       
    72  4
       
    73 -hello world
       
    74 -goodbye world
       
    75 +hello  world
       
    76 +     goodbye world
       
    77  7
       
    78 % qdiff -w
       
    79 diff -r 35fb829491c1 lines
       
    80 --- a/lines
       
    81 +++ b/lines
       
    82 @@ -1,3 +1,5 @@
       
    83 +
       
    84 +
       
    85  1
       
    86  2
       
    87  3
       
    88 % qdiff --reverse
       
    89 diff -r 35fb829491c1 lines
       
    90 --- a/lines
       
    91 +++ b/lines
       
    92 @@ -1,11 +1,9 @@
       
    93 -
       
    94 -
       
    95  1
       
    96  2
       
    97  3
       
    98  4
       
    99 -hello  world
       
   100 -     goodbye world
       
   101 +hello world
       
   102 +goodbye world
       
   103  7
       
   104  8
       
   105  9
       
   106 % qdiff preserve existing git flag
       
   107 diff --git a/lines b/lines
       
   108 --- a/lines
       
   109 +++ b/lines
       
   110 @@ -1,9 +1,12 @@
       
   111 +
       
   112 +
       
   113  1
       
   114  2
       
   115  3
       
   116  4
       
   117 -hello world
       
   118 -goodbye world
       
   119 +hello  world
       
   120 +     goodbye world
       
   121  7
       
   122  8
       
   123  9
       
   124 +a
       
   125 % qdiff --stat
       
   126  lines |  7 +++++--
       
   127  1 files changed, 5 insertions(+), 2 deletions(-)