tests/test-rename.out
changeset 1512 53ad6ee6ede4
child 1513 5c3b93b244aa
equal deleted inserted replaced
1511:a91bfbbe88d3 1512:53ad6ee6ede4
       
     1 # rename a single file
       
     2 A d2/c
       
     3 R d1/d11/a1
       
     4 # move a single file to an existing directory
       
     5 A d2/a1
       
     6 R d1/d11/a1
       
     7 # rename directory d1 as d3
       
     8 copying d1/a to d3/a
       
     9 copying d1/b to d3/b
       
    10 copying d1/ba to d3/ba
       
    11 copying d1/d11/a1 to d3/d11/a1
       
    12 removing d1/a
       
    13 removing d1/b
       
    14 removing d1/ba
       
    15 removing d1/d11/a1
       
    16 A d3/a
       
    17 A d3/b
       
    18 A d3/ba
       
    19 A d3/d11/a1
       
    20 R d1/a
       
    21 R d1/b
       
    22 R d1/ba
       
    23 R d1/d11/a1
       
    24 # move directory d1/d11 to an existing directory d2 (removes empty d1)
       
    25 copying d1/d11/a1 to d2/d11/a1
       
    26 removing d1/d11/a1
       
    27 A d2/d11/a1
       
    28 R d1/d11/a1
       
    29 # move directories d1 and d2 to a new directory d3
       
    30 copying d1/a to d3/d1/a
       
    31 copying d1/b to d3/d1/b
       
    32 copying d1/ba to d3/d1/ba
       
    33 copying d1/d11/a1 to d3/d1/d11/a1
       
    34 copying d2/b to d3/d2/b
       
    35 removing d1/a
       
    36 removing d1/b
       
    37 removing d1/ba
       
    38 removing d1/d11/a1
       
    39 removing d2/b
       
    40 A d3/d1/a
       
    41 A d3/d1/b
       
    42 A d3/d1/ba
       
    43 A d3/d1/d11/a1
       
    44 A d3/d2/b
       
    45 R d1/a
       
    46 R d1/b
       
    47 R d1/ba
       
    48 R d1/d11/a1
       
    49 R d2/b
       
    50 # move everything under directory d1 to existing directory d2, do not
       
    51 # overwrite existing files (d2/b)
       
    52 d2/b: not overwriting - file already managed
       
    53 copying d1/d11/a1 to d2/d11/a1
       
    54 removing d1/d11/a1
       
    55 A d2/a
       
    56 A d2/ba
       
    57 A d2/d11/a1
       
    58 R d1/a
       
    59 R d1/ba
       
    60 R d1/d11/a1
       
    61 1c1
       
    62 < d1/b
       
    63 ---
       
    64 > d2/b
       
    65 # attempt to move potentially more than one file into a non-existent
       
    66 # directory
       
    67 abort: with multiple sources, destination must be an existing directory
       
    68 # move every file under d1 to d2/d21 (glob)
       
    69 copying d1/a to d2/d21/a
       
    70 copying d1/b to d2/d21/b
       
    71 copying d1/ba to d2/d21/ba
       
    72 copying d1/d11/a1 to d2/d21/a1
       
    73 removing d1/a
       
    74 removing d1/b
       
    75 removing d1/ba
       
    76 removing d1/d11/a1
       
    77 A d2/d21/a
       
    78 A d2/d21/a1
       
    79 A d2/d21/b
       
    80 A d2/d21/ba
       
    81 R d1/a
       
    82 R d1/b
       
    83 R d1/ba
       
    84 R d1/d11/a1
       
    85 # move every file under d1 starting with an 'a' to d2/d21 (regexp)
       
    86 copying d1/a to d2/d21/a
       
    87 copying d1/d11/a1 to d2/d21/a1
       
    88 removing d1/a
       
    89 removing d1/d11/a1
       
    90 A d2/d21/a
       
    91 A d2/d21/a1
       
    92 R d1/a
       
    93 R d1/d11/a1