Show More
@@ -1,4 +1,4 b'' | |||||
1 |
$ "$TESTDIR/hghave" svn13 no-outer-repo |
|
1 | $ "$TESTDIR/hghave" svn13 no-outer-repo || exit 80 | |
2 |
|
2 | |||
3 | $ fixpath() |
|
3 | $ fixpath() | |
4 | > { |
|
4 | > { | |
@@ -31,18 +31,16 b' Add' | |||||
31 | $ echo a > a/a |
|
31 | $ echo a > a/a | |
32 | $ mkdir -p a/d1/d2 |
|
32 | $ mkdir -p a/d1/d2 | |
33 | $ echo b > a/d1/d2/b |
|
33 | $ echo b > a/d1/d2/b | |
34 | $ ln -s a/missing a/link |
|
|||
35 | $ hg --cwd a ci -d '0 0' -A -m 'add a file' |
|
34 | $ hg --cwd a ci -d '0 0' -A -m 'add a file' | |
36 | adding a |
|
35 | adding a | |
37 | adding d1/d2/b |
|
36 | adding d1/d2/b | |
38 | adding link |
|
|||
39 |
|
37 | |||
40 | Modify |
|
38 | Modify | |
41 |
|
39 | |||
42 | $ "$TESTDIR/svn-safe-append.py" a a/a |
|
40 | $ "$TESTDIR/svn-safe-append.py" a a/a | |
43 | $ hg --cwd a ci -d '1 0' -m 'modify a file' |
|
41 | $ hg --cwd a ci -d '1 0' -m 'modify a file' | |
44 | $ hg --cwd a tip -q |
|
42 | $ hg --cwd a tip -q | |
45 | 1:8231f652da37 |
|
43 | 1:e0e2b8a9156b | |
46 |
|
44 | |||
47 | $ hg convert -d svn a |
|
45 | $ hg convert -d svn a | |
48 | assuming destination a-hg |
|
46 | assuming destination a-hg | |
@@ -57,7 +55,6 b' Modify' | |||||
57 | 2 1 test d1 |
|
55 | 2 1 test d1 | |
58 | 2 1 test d1/d2 |
|
56 | 2 1 test d1/d2 | |
59 | 2 1 test d1/d2/b |
|
57 | 2 1 test d1/d2/b | |
60 | 2 1 test link |
|
|||
61 | 2 2 test . |
|
58 | 2 2 test . | |
62 | 2 2 test a |
|
59 | 2 2 test a | |
63 | revision: 2 |
|
60 | revision: 2 | |
@@ -71,27 +68,22 b' Modify' | |||||
71 | A /d1 |
|
68 | A /d1 | |
72 | A /d1/d2 |
|
69 | A /d1/d2 | |
73 | A /d1/d2/b |
|
70 | A /d1/d2/b | |
74 | A /link |
|
|||
75 | $ ls a a-hg-wc |
|
71 | $ ls a a-hg-wc | |
76 | a: |
|
72 | a: | |
77 | a |
|
73 | a | |
78 | d1 |
|
74 | d1 | |
79 | link |
|
|||
80 |
|
75 | |||
81 | a-hg-wc: |
|
76 | a-hg-wc: | |
82 | a |
|
77 | a | |
83 | d1 |
|
78 | d1 | |
84 | link |
|
|||
85 | $ cmp a/a a-hg-wc/a |
|
79 | $ cmp a/a a-hg-wc/a | |
86 |
|
80 | |||
87 | Rename |
|
81 | Rename | |
88 |
|
82 | |||
89 | $ hg --cwd a mv a b |
|
83 | $ hg --cwd a mv a b | |
90 | $ hg --cwd a mv link newlink |
|
|||
91 |
|
||||
92 | $ hg --cwd a ci -d '2 0' -m 'rename a file' |
|
84 | $ hg --cwd a ci -d '2 0' -m 'rename a file' | |
93 | $ hg --cwd a tip -q |
|
85 | $ hg --cwd a tip -q | |
94 | 2:a67e26ccec09 |
|
86 | 2:eb5169441d43 | |
95 |
|
87 | |||
96 | $ hg convert -d svn a |
|
88 | $ hg convert -d svn a | |
97 | assuming destination a-hg |
|
89 | assuming destination a-hg | |
@@ -106,24 +98,19 b' Rename' | |||||
106 | 3 1 test d1/d2/b |
|
98 | 3 1 test d1/d2/b | |
107 | 3 3 test . |
|
99 | 3 3 test . | |
108 | 3 3 test b |
|
100 | 3 3 test b | |
109 | 3 3 test newlink |
|
|||
110 | revision: 3 |
|
101 | revision: 3 | |
111 | author: test |
|
102 | author: test | |
112 | msg: rename a file |
|
103 | msg: rename a file | |
113 | D /a |
|
104 | D /a | |
114 | A /b (from /a@2) |
|
105 | A /b (from /a@2) | |
115 | D /link |
|
|||
116 | A /newlink (from /link@2) |
|
|||
117 | $ ls a a-hg-wc |
|
106 | $ ls a a-hg-wc | |
118 | a: |
|
107 | a: | |
119 | b |
|
108 | b | |
120 | d1 |
|
109 | d1 | |
121 | newlink |
|
|||
122 |
|
110 | |||
123 | a-hg-wc: |
|
111 | a-hg-wc: | |
124 | b |
|
112 | b | |
125 | d1 |
|
113 | d1 | |
126 | newlink |
|
|||
127 |
|
114 | |||
128 | Copy |
|
115 | Copy | |
129 |
|
116 | |||
@@ -131,7 +118,7 b' Copy' | |||||
131 |
|
118 | |||
132 | $ hg --cwd a ci -d '3 0' -m 'copy a file' |
|
119 | $ hg --cwd a ci -d '3 0' -m 'copy a file' | |
133 | $ hg --cwd a tip -q |
|
120 | $ hg --cwd a tip -q | |
134 | 3:0cf087b9ab02 |
|
121 | 3:60effef6ab48 | |
135 |
|
122 | |||
136 | $ hg convert -d svn a |
|
123 | $ hg convert -d svn a | |
137 | assuming destination a-hg |
|
124 | assuming destination a-hg | |
@@ -145,7 +132,6 b' Copy' | |||||
145 | 4 1 test d1/d2 |
|
132 | 4 1 test d1/d2 | |
146 | 4 1 test d1/d2/b |
|
133 | 4 1 test d1/d2/b | |
147 | 4 3 test b |
|
134 | 4 3 test b | |
148 | 4 3 test newlink |
|
|||
149 | 4 4 test . |
|
135 | 4 4 test . | |
150 | 4 4 test c |
|
136 | 4 4 test c | |
151 | revision: 4 |
|
137 | revision: 4 | |
@@ -157,13 +143,11 b' Copy' | |||||
157 | b |
|
143 | b | |
158 | c |
|
144 | c | |
159 | d1 |
|
145 | d1 | |
160 | newlink |
|
|||
161 |
|
146 | |||
162 | a-hg-wc: |
|
147 | a-hg-wc: | |
163 | b |
|
148 | b | |
164 | c |
|
149 | c | |
165 | d1 |
|
150 | d1 | |
166 | newlink |
|
|||
167 |
|
151 | |||
168 | $ hg --cwd a rm b |
|
152 | $ hg --cwd a rm b | |
169 |
|
153 | |||
@@ -171,7 +155,7 b' Remove' | |||||
171 |
|
155 | |||
172 | $ hg --cwd a ci -d '4 0' -m 'remove a file' |
|
156 | $ hg --cwd a ci -d '4 0' -m 'remove a file' | |
173 | $ hg --cwd a tip -q |
|
157 | $ hg --cwd a tip -q | |
174 | 4:07b2e34a5b17 |
|
158 | 4:87bbe3013fb6 | |
175 |
|
159 | |||
176 | $ hg convert -d svn a |
|
160 | $ hg convert -d svn a | |
177 | assuming destination a-hg |
|
161 | assuming destination a-hg | |
@@ -184,7 +168,6 b' Remove' | |||||
184 | 5 1 test d1 |
|
168 | 5 1 test d1 | |
185 | 5 1 test d1/d2 |
|
169 | 5 1 test d1/d2 | |
186 | 5 1 test d1/d2/b |
|
170 | 5 1 test d1/d2/b | |
187 | 5 3 test newlink |
|
|||
188 | 5 4 test c |
|
171 | 5 4 test c | |
189 | 5 5 test . |
|
172 | 5 5 test . | |
190 | revision: 5 |
|
173 | revision: 5 | |
@@ -195,12 +178,10 b' Remove' | |||||
195 | a: |
|
178 | a: | |
196 | c |
|
179 | c | |
197 | d1 |
|
180 | d1 | |
198 | newlink |
|
|||
199 |
|
181 | |||
200 | a-hg-wc: |
|
182 | a-hg-wc: | |
201 | c |
|
183 | c | |
202 | d1 |
|
184 | d1 | |
203 | newlink |
|
|||
204 |
|
185 | |||
205 | Executable |
|
186 | Executable | |
206 |
|
187 | |||
@@ -212,10 +193,10 b' Executable' | |||||
212 | $ hg --cwd a ci -d '5 0' -m 'make a file executable' |
|
193 | $ hg --cwd a ci -d '5 0' -m 'make a file executable' | |
213 | #if execbit |
|
194 | #if execbit | |
214 | $ hg --cwd a tip -q |
|
195 | $ hg --cwd a tip -q | |
215 | 5:31093672760b |
|
196 | 5:ff42e473c340 | |
216 | #else |
|
197 | #else | |
217 | $ hg --cwd a tip -q |
|
198 | $ hg --cwd a tip -q | |
218 | 5:034971d37224 |
|
199 | 5:817a700c8cf1 | |
219 | #endif |
|
200 | #endif | |
220 |
|
201 | |||
221 | $ hg convert -d svn a |
|
202 | $ hg convert -d svn a | |
@@ -229,7 +210,6 b' Executable' | |||||
229 | 6 1 test d1 |
|
210 | 6 1 test d1 | |
230 | 6 1 test d1/d2 |
|
211 | 6 1 test d1/d2 | |
231 | 6 1 test d1/d2/b |
|
212 | 6 1 test d1/d2/b | |
232 | 6 3 test newlink |
|
|||
233 | 6 6 test . |
|
213 | 6 6 test . | |
234 | 6 6 test c |
|
214 | 6 6 test c | |
235 | revision: 6 |
|
215 | revision: 6 | |
@@ -239,8 +219,42 b' Executable' | |||||
239 | #if execbit |
|
219 | #if execbit | |
240 | $ test -x a-hg-wc/c |
|
220 | $ test -x a-hg-wc/c | |
241 | #endif |
|
221 | #endif | |
|
222 | ||||
|
223 | #if symlink | |||
|
224 | ||||
|
225 | Symlinks | |||
|
226 | ||||
|
227 | $ ln -s a/missing a/link | |||
|
228 | $ hg --cwd a commit -Am 'add symlink' | |||
|
229 | adding link | |||
|
230 | $ hg --cwd a mv link newlink | |||
|
231 | $ hg --cwd a commit -m 'move symlink' | |||
|
232 | $ hg convert -d svn a | |||
|
233 | assuming destination a-hg | |||
|
234 | initializing svn working copy 'a-hg-wc' | |||
|
235 | scanning source... | |||
|
236 | sorting... | |||
|
237 | converting... | |||
|
238 | 1 add symlink | |||
|
239 | 0 move symlink | |||
|
240 | $ svnupanddisplay a-hg-wc 1 | |||
|
241 | 8 1 test d1 | |||
|
242 | 8 1 test d1/d2 | |||
|
243 | 8 1 test d1/d2/b | |||
|
244 | 8 6 test c | |||
|
245 | 8 8 test . | |||
|
246 | 8 8 test newlink | |||
|
247 | revision: 8 | |||
|
248 | author: test | |||
|
249 | msg: move symlink | |||
|
250 | D /link | |||
|
251 | A /newlink (from /link@7) | |||
|
252 | ||||
|
253 | #endif | |||
|
254 | ||||
242 | $ rm -rf a a-hg a-hg-wc |
|
255 | $ rm -rf a a-hg a-hg-wc | |
243 |
|
256 | |||
|
257 | ||||
244 | Executable in new directory |
|
258 | Executable in new directory | |
245 |
|
259 | |||
246 | $ hg init a |
|
260 | $ hg init a |
General Comments 0
You need to be logged in to leave comments.
Login now