comparison tests/test-rename.out @ 1565:4bcbc126b80b

fix rename --after
author Robin Farine <robin.farine@terminus.org>
date Thu, 01 Dec 2005 10:48:35 -0600
parents faf46d810a85
children 94c179a92f4a
comparison
equal deleted inserted replaced
1564:34579a67fa71 1565:4bcbc126b80b
1 # rename a single file 1 # rename a single file
2 A d2/c
3 R d1/d11/a1
4 # rename --after a single file
2 A d2/c 5 A d2/c
3 R d1/d11/a1 6 R d1/d11/a1
4 # move a single file to an existing directory 7 # move a single file to an existing directory
5 A d2/a1 8 A d2/a1
6 R d1/d11/a1 9 R d1/d11/a1
10 # move --after a single file to an existing directory
11 A d2/a1
12 R d1/d11/a1
13 # rename a file using a relative path
14 A d1/d11/e
15 R d2/b
16 # rename --after a file using a relative path
17 A d1/d11/e
18 R d2/b
7 # rename directory d1 as d3 19 # rename directory d1 as d3
8 copying d1/a to d3/a 20 copying d1/a to d3/a
9 copying d1/b to d3/b 21 copying d1/b to d3/b
10 copying d1/ba to d3/ba 22 copying d1/ba to d3/ba
11 copying d1/d11/a1 to d3/d11/a1 23 copying d1/d11/a1 to d3/d11/a1
19 A d3/d11/a1 31 A d3/d11/a1
20 R d1/a 32 R d1/a
21 R d1/b 33 R d1/b
22 R d1/ba 34 R d1/ba
23 R d1/d11/a1 35 R d1/d11/a1
36 # rename --after directory d1 as d3
37 copying d1/a to d3/a
38 copying d1/b to d3/b
39 copying d1/ba to d3/ba
40 copying d1/d11/a1 to d3/d11/a1
41 removing d1/a
42 removing d1/b
43 removing d1/ba
44 removing d1/d11/a1
45 A d3/a
46 A d3/b
47 A d3/ba
48 A d3/d11/a1
49 R d1/a
50 R d1/b
51 R d1/ba
52 R d1/d11/a1
53 # move a directory using a relative path
54 copying ../d1/d11/a1 to d3/d11/a1
55 removing ../d1/d11/a1
56 A d2/d3/d11/a1
57 R d1/d11/a1
58 # move --after a directory using a relative path
59 copying ../d1/d11/a1 to d3/d11/a1
60 removing ../d1/d11/a1
61 A d2/d3/d11/a1
62 R d1/d11/a1
24 # move directory d1/d11 to an existing directory d2 (removes empty d1) 63 # move directory d1/d11 to an existing directory d2 (removes empty d1)
25 copying d1/d11/a1 to d2/d11/a1 64 copying d1/d11/a1 to d2/d11/a1
26 removing d1/d11/a1 65 removing d1/d11/a1
27 A d2/d11/a1 66 A d2/d11/a1
28 R d1/d11/a1 67 R d1/d11/a1
29 # move directories d1 and d2 to a new directory d3 68 # move directories d1 and d2 to a new directory d3
69 copying d1/a to d3/d1/a
70 copying d1/b to d3/d1/b
71 copying d1/ba to d3/d1/ba
72 copying d1/d11/a1 to d3/d1/d11/a1
73 copying d2/b to d3/d2/b
74 removing d1/a
75 removing d1/b
76 removing d1/ba
77 removing d1/d11/a1
78 removing d2/b
79 A d3/d1/a
80 A d3/d1/b
81 A d3/d1/ba
82 A d3/d1/d11/a1
83 A d3/d2/b
84 R d1/a
85 R d1/b
86 R d1/ba
87 R d1/d11/a1
88 R d2/b
89 # move --after directories d1 and d2 to a new directory d3
30 copying d1/a to d3/d1/a 90 copying d1/a to d3/d1/a
31 copying d1/b to d3/d1/b 91 copying d1/b to d3/d1/b
32 copying d1/ba to d3/d1/ba 92 copying d1/ba to d3/d1/ba
33 copying d1/d11/a1 to d3/d1/d11/a1 93 copying d1/d11/a1 to d3/d1/d11/a1
34 copying d2/b to d3/d2/b 94 copying d2/b to d3/d2/b
80 A d2/d21/ba 140 A d2/d21/ba
81 R d1/a 141 R d1/a
82 R d1/b 142 R d1/b
83 R d1/ba 143 R d1/ba
84 R d1/d11/a1 144 R d1/d11/a1
145 # move --after some files under d1 to d2/d21 (glob)
146 copying d1/a to d2/d21/a
147 copying d1/d11/a1 to d2/d21/a1
148 removing d1/a
149 removing d1/d11/a1
150 A d2/d21/a
151 A d2/d21/a1
152 R d1/a
153 R d1/d11/a1
85 # move every file under d1 starting with an 'a' to d2/d21 (regexp) 154 # move every file under d1 starting with an 'a' to d2/d21 (regexp)
86 copying d1/a to d2/d21/a 155 copying d1/a to d2/d21/a
87 copying d1/d11/a1 to d2/d21/a1 156 copying d1/d11/a1 to d2/d21/a1
88 removing d1/a 157 removing d1/a
89 removing d1/d11/a1 158 removing d1/d11/a1
91 A d2/d21/a1 160 A d2/d21/a1
92 R d1/a 161 R d1/a
93 R d1/d11/a1 162 R d1/d11/a1
94 # attempt to overwrite an existing file 163 # attempt to overwrite an existing file
95 d1/ca: not overwriting - file exists 164 d1/ca: not overwriting - file exists
96 abort: no files to copy
97 ? d1/ca 165 ? d1/ca
98 # forced overwrite of an existing file 166 # forced overwrite of an existing file
99 A d1/ca 167 A d1/ca
100 R d1/ba 168 R d1/ba
101 # replace a symlink with a file 169 # replace a symlink with a file