Show More
@@ -644,70 +644,34 b' class svn_source(converter_source):' | |||||
644 | copies[self.recode(entry)] = self.recode(copyfrom_path) |
|
644 | copies[self.recode(entry)] = self.recode(copyfrom_path) | |
645 | elif kind == 0: # gone, but had better be a deleted *file* |
|
645 | elif kind == 0: # gone, but had better be a deleted *file* | |
646 | self.ui.debug(_("gone from %s\n") % ent.copyfrom_rev) |
|
646 | self.ui.debug(_("gone from %s\n") % ent.copyfrom_rev) | |
647 |
|
647 | pmodule, prevnum = self.revsplit(parents[0])[1:] | ||
648 | # if a branch is created but entries are removed in |
|
648 | parentpath = pmodule + "/" + entrypath | |
649 | # the same changeset, get the right fromrev |
|
649 | self.ui.debug(_("entry %s\n") % parentpath) | |
650 | # parents cannot be empty here, you cannot remove |
|
|||
651 | # things from a root revision. |
|
|||
652 | uuid, old_module, fromrev = self.revsplit(parents[0]) |
|
|||
653 |
|
||||
654 | basepath = old_module + "/" + self.getrelpath(path) |
|
|||
655 | entrypath = basepath |
|
|||
656 |
|
||||
657 | def lookup_parts(p): |
|
|||
658 | rc = None |
|
|||
659 | parts = p.split("/") |
|
|||
660 | for i in range(len(parts)): |
|
|||
661 | part = "/".join(parts[:i]) |
|
|||
662 | info = part, copyfrom.get(part, None) |
|
|||
663 | if info[1] is not None: |
|
|||
664 | self.ui.debug(_("found parent directory %s\n") % info[1]) |
|
|||
665 | rc = info |
|
|||
666 | return rc |
|
|||
667 |
|
||||
668 | self.ui.debug(_("base, entry %s %s\n") % (basepath, entrypath)) |
|
|||
669 |
|
||||
670 | frompath, froment = lookup_parts(entrypath) or (None, revnum - 1) |
|
|||
671 |
|
||||
672 | # need to remove fragment from lookup_parts and |
|
|||
673 | # replace with copyfrom_path |
|
|||
674 | if frompath is not None: |
|
|||
675 | self.ui.debug(_("munge-o-matic\n")) |
|
|||
676 | self.ui.debug(entrypath + '\n') |
|
|||
677 | self.ui.debug(entrypath[len(frompath):] + '\n') |
|
|||
678 | entrypath = froment.copyfrom_path + entrypath[len(frompath):] |
|
|||
679 | fromrev = froment.copyfrom_rev |
|
|||
680 | self.ui.debug(_("info: %s %s %s %s\n") % (frompath, froment, ent, entrypath)) |
|
|||
681 |
|
650 | |||
682 | # We can avoid the reparent calls if the module has |
|
651 | # We can avoid the reparent calls if the module has | |
683 | # not changed but it probably does not worth the pain. |
|
652 | # not changed but it probably does not worth the pain. | |
684 | prevmodule = self.reparent('') |
|
653 | prevmodule = self.reparent('') | |
685 |
fromkind = svn.ra.check_path(self.ra, ent |
|
654 | fromkind = svn.ra.check_path(self.ra, parentpath.strip('/'), prevnum) | |
686 | self.reparent(prevmodule) |
|
655 | self.reparent(prevmodule) | |
687 |
|
656 | |||
688 | if fromkind == svn.core.svn_node_file: |
|
657 | if fromkind == svn.core.svn_node_file: | |
689 | entries.append(self.recode(entry)) |
|
658 | entries.append(self.recode(entry)) | |
690 | elif fromkind == svn.core.svn_node_dir: |
|
659 | elif fromkind == svn.core.svn_node_dir: | |
691 | # Sometimes this is tricky. For example: in The |
|
|||
692 | # Subversion Repository revision 6940 a dir was |
|
|||
693 | # copied and one of its files was deleted from the |
|
|||
694 | # new location in the same commit. This code can't |
|
|||
695 | # deal with that yet. |
|
|||
696 | if ent.action == 'C': |
|
660 | if ent.action == 'C': | |
697 |
children = self._find_children(path, |
|
661 | children = self._find_children(path, prevnum) | |
698 | else: |
|
662 | else: | |
699 |
oroot = ent |
|
663 | oroot = parentpath.strip('/') | |
700 | nroot = path.strip('/') |
|
664 | nroot = path.strip('/') | |
701 |
children = self._find_children(oroot, |
|
665 | children = self._find_children(oroot, prevnum) | |
702 | children = [s.replace(oroot,nroot) for s in children] |
|
666 | children = [s.replace(oroot,nroot) for s in children] | |
703 |
|
667 | |||
704 | for child in children: |
|
668 | for child in children: | |
705 |
|
|
669 | childpath = self.getrelpath("/" + child, pmodule) | |
706 |
if not |
|
670 | if not childpath: | |
707 | continue |
|
671 | continue | |
708 |
if |
|
672 | if childpath in copies: | |
709 |
del copies[ |
|
673 | del copies[childpath] | |
710 |
entries.append( |
|
674 | entries.append(childpath) | |
711 | else: |
|
675 | else: | |
712 | self.ui.debug(_('unknown path in revision %d: %s\n') % \ |
|
676 | self.ui.debug(_('unknown path in revision %d: %s\n') % \ | |
713 | (revnum, path)) |
|
677 | (revnum, path)) |
@@ -1,6 +1,6 b'' | |||||
1 | SVN-fs-dump-format-version: 2 |
|
1 | SVN-fs-dump-format-version: 2 | |
2 |
|
2 | |||
3 | UUID: 7b60030a-5a1f-4344-a009-73f0c1c2adf2 |
|
3 | UUID: 3c3c228a-b3dd-467c-a766-896f4b7cd0af | |
4 |
|
4 | |||
5 | Revision-number: 0 |
|
5 | Revision-number: 0 | |
6 | Prop-content-length: 56 |
|
6 | Prop-content-length: 56 | |
@@ -9,7 +9,7 b' Content-length: 56' | |||||
9 | K 8 |
|
9 | K 8 | |
10 | svn:date |
|
10 | svn:date | |
11 | V 27 |
|
11 | V 27 | |
12 | 2008-12-06T12:47:52.296168Z |
|
12 | 2009-06-21T12:38:53.023457Z | |
13 | PROPS-END |
|
13 | PROPS-END | |
14 |
|
14 | |||
15 | Revision-number: 1 |
|
15 | Revision-number: 1 | |
@@ -27,7 +27,7 b' pmezard' | |||||
27 | K 8 |
|
27 | K 8 | |
28 | svn:date |
|
28 | svn:date | |
29 | V 27 |
|
29 | V 27 | |
30 | 2008-12-06T12:47:52.342238Z |
|
30 | 2009-06-21T12:38:53.111986Z | |
31 | PROPS-END |
|
31 | PROPS-END | |
32 |
|
32 | |||
33 | Node-path: branches |
|
33 | Node-path: branches | |
@@ -72,7 +72,7 b' pmezard' | |||||
72 | K 8 |
|
72 | K 8 | |
73 | svn:date |
|
73 | svn:date | |
74 | V 27 |
|
74 | V 27 | |
75 |
200 |
|
75 | 2009-06-21T12:38:54.182594Z | |
76 | PROPS-END |
|
76 | PROPS-END | |
77 |
|
77 | |||
78 | Node-path: branches/notinbranch |
|
78 | Node-path: branches/notinbranch | |
@@ -81,6 +81,7 b' Node-action: add' | |||||
81 | Prop-content-length: 10 |
|
81 | Prop-content-length: 10 | |
82 | Text-content-length: 2 |
|
82 | Text-content-length: 2 | |
83 | Text-content-md5: e29311f6f1bf1af907f9ef9f44b8328b |
|
83 | Text-content-md5: e29311f6f1bf1af907f9ef9f44b8328b | |
|
84 | Text-content-sha1: e983f374794de9c64e3d1c1de1d490c0756eeeff | |||
84 | Content-length: 12 |
|
85 | Content-length: 12 | |
85 |
|
86 | |||
86 | PROPS-END |
|
87 | PROPS-END | |
@@ -93,6 +94,7 b' Node-action: add' | |||||
93 | Prop-content-length: 10 |
|
94 | Prop-content-length: 10 | |
94 | Text-content-length: 2 |
|
95 | Text-content-length: 2 | |
95 | Text-content-md5: 60b725f10c9c85c70d97880dfe8191b3 |
|
96 | Text-content-md5: 60b725f10c9c85c70d97880dfe8191b3 | |
|
97 | Text-content-sha1: 3f786850e387550fdab836ed7e6dc881de23001b | |||
96 | Content-length: 12 |
|
98 | Content-length: 12 | |
97 |
|
99 | |||
98 | PROPS-END |
|
100 | PROPS-END | |
@@ -105,6 +107,7 b' Node-action: add' | |||||
105 | Prop-content-length: 10 |
|
107 | Prop-content-length: 10 | |
106 | Text-content-length: 2 |
|
108 | Text-content-length: 2 | |
107 | Text-content-md5: 3b5d5c3712955042212316173ccf37be |
|
109 | Text-content-md5: 3b5d5c3712955042212316173ccf37be | |
|
110 | Text-content-sha1: 89e6c98d92887913cadf06b2adb97f26cde4849b | |||
108 | Content-length: 12 |
|
111 | Content-length: 12 | |
109 |
|
112 | |||
110 | PROPS-END |
|
113 | PROPS-END | |
@@ -117,20 +120,43 b' Node-action: add' | |||||
117 | Prop-content-length: 10 |
|
120 | Prop-content-length: 10 | |
118 | Text-content-length: 2 |
|
121 | Text-content-length: 2 | |
119 | Text-content-md5: 2cd6ee2c70b0bde53fbe6cac3c8b8bb1 |
|
122 | Text-content-md5: 2cd6ee2c70b0bde53fbe6cac3c8b8bb1 | |
|
123 | Text-content-sha1: 2b66fd261ee5c6cfc8de7fa466bab600bcfe4f69 | |||
120 | Content-length: 12 |
|
124 | Content-length: 12 | |
121 |
|
125 | |||
122 | PROPS-END |
|
126 | PROPS-END | |
123 | c |
|
127 | c | |
124 |
|
128 | |||
125 |
|
129 | |||
|
130 | Node-path: trunk/dir | |||
|
131 | Node-kind: dir | |||
|
132 | Node-action: add | |||
|
133 | Prop-content-length: 10 | |||
|
134 | Content-length: 10 | |||
|
135 | ||||
|
136 | PROPS-END | |||
|
137 | ||||
|
138 | ||||
|
139 | Node-path: trunk/dir/e | |||
|
140 | Node-kind: file | |||
|
141 | Node-action: add | |||
|
142 | Prop-content-length: 10 | |||
|
143 | Text-content-length: 2 | |||
|
144 | Text-content-md5: 9ffbf43126e33be52cd2bf7e01d627f9 | |||
|
145 | Text-content-sha1: 094e3afb2fe8dfe82f63731cdcd3b999f4856cff | |||
|
146 | Content-length: 12 | |||
|
147 | ||||
|
148 | PROPS-END | |||
|
149 | e | |||
|
150 | ||||
|
151 | ||||
126 | Revision-number: 3 |
|
152 | Revision-number: 3 | |
127 |
Prop-content-length: 12 |
|
153 | Prop-content-length: 132 | |
128 |
Content-length: 12 |
|
154 | Content-length: 132 | |
129 |
|
155 | |||
130 | K 7 |
|
156 | K 7 | |
131 | svn:log |
|
157 | svn:log | |
132 | V 22 |
|
158 | V 30 | |
133 | branch trunk, remove c |
|
159 | branch trunk, remove c and dir | |
134 | K 10 |
|
160 | K 10 | |
135 | svn:author |
|
161 | svn:author | |
136 | V 7 |
|
162 | V 7 | |
@@ -138,38 +164,22 b' pmezard' | |||||
138 | K 8 |
|
164 | K 8 | |
139 | svn:date |
|
165 | svn:date | |
140 | V 27 |
|
166 | V 27 | |
141 | 2008-12-06T12:47:55.188535Z |
|
167 | 2009-06-21T12:38:57.166484Z | |
142 | PROPS-END |
|
168 | PROPS-END | |
143 |
|
169 | |||
144 | Node-path: branches/old |
|
170 | Node-path: branches/old | |
145 | Node-kind: dir |
|
171 | Node-kind: dir | |
146 | Node-action: add |
|
172 | Node-action: add | |
147 |
Node-copyfrom-rev: |
|
173 | Node-copyfrom-rev: 2 | |
148 | Node-copyfrom-path: trunk |
|
174 | Node-copyfrom-path: trunk | |
149 | Prop-content-length: 34 |
|
|||
150 | Content-length: 34 |
|
|||
151 |
|
||||
152 | K 13 |
|
|||
153 | svn:mergeinfo |
|
|||
154 | V 0 |
|
|||
155 |
|
||||
156 | PROPS-END |
|
|||
157 |
|
175 | |||
158 |
|
176 | |||
159 |
Node-path: branches/old/ |
|
177 | Node-path: branches/old/dir | |
160 |
Node- |
|
178 | Node-action: delete | |
161 | Node-action: add |
|
|||
162 | Node-copyfrom-rev: 2 |
|
|||
163 | Node-copyfrom-path: trunk/a |
|
|||
164 | Text-copy-source-md5: 60b725f10c9c85c70d97880dfe8191b3 |
|
|||
165 |
|
179 | |||
166 |
|
180 | |||
167 |
Node-path: branches/old/ |
|
181 | Node-path: branches/old/c | |
168 |
Node- |
|
182 | Node-action: delete | |
169 | Node-action: add |
|
|||
170 | Node-copyfrom-rev: 2 |
|
|||
171 | Node-copyfrom-path: trunk/b |
|
|||
172 | Text-copy-source-md5: 3b5d5c3712955042212316173ccf37be |
|
|||
173 |
|
183 | |||
174 |
|
184 | |||
175 | Revision-number: 4 |
|
185 | Revision-number: 4 | |
@@ -187,7 +197,7 b' pmezard' | |||||
187 | K 8 |
|
197 | K 8 | |
188 | svn:date |
|
198 | svn:date | |
189 | V 27 |
|
199 | V 27 | |
190 | 2008-12-06T12:47:57.146347Z |
|
200 | 2009-06-21T12:38:59.084420Z | |
191 | PROPS-END |
|
201 | PROPS-END | |
192 |
|
202 | |||
193 | Node-path: trunk/a |
|
203 | Node-path: trunk/a | |
@@ -195,6 +205,7 b' Node-kind: file' | |||||
195 | Node-action: change |
|
205 | Node-action: change | |
196 | Text-content-length: 4 |
|
206 | Text-content-length: 4 | |
197 | Text-content-md5: 0d227f1abf8c2932d342e9b99cc957eb |
|
207 | Text-content-md5: 0d227f1abf8c2932d342e9b99cc957eb | |
|
208 | Text-content-sha1: d7c8127a20a396cff08af086a1c695b0636f0c29 | |||
198 | Content-length: 4 |
|
209 | Content-length: 4 | |
199 |
|
210 | |||
200 | a |
|
211 | a | |
@@ -216,7 +227,7 b' pmezard' | |||||
216 | K 8 |
|
227 | K 8 | |
217 | svn:date |
|
228 | svn:date | |
218 | V 27 |
|
229 | V 27 | |
219 | 2008-12-06T12:47:58.150124Z |
|
230 | 2009-06-21T12:39:00.093201Z | |
220 | PROPS-END |
|
231 | PROPS-END | |
221 |
|
232 | |||
222 | Node-path: branches/old/b |
|
233 | Node-path: branches/old/b | |
@@ -224,6 +235,7 b' Node-kind: file' | |||||
224 | Node-action: change |
|
235 | Node-action: change | |
225 | Text-content-length: 4 |
|
236 | Text-content-length: 4 | |
226 | Text-content-md5: 06ac26ed8b614fc0b141e4542aa067c2 |
|
237 | Text-content-md5: 06ac26ed8b614fc0b141e4542aa067c2 | |
|
238 | Text-content-sha1: f6980469e74f7125178e88ec571e06fe6ce86e95 | |||
227 | Content-length: 4 |
|
239 | Content-length: 4 | |
228 |
|
240 | |||
229 | b |
|
241 | b | |
@@ -245,7 +257,7 b' pmezard' | |||||
245 | K 8 |
|
257 | K 8 | |
246 | svn:date |
|
258 | svn:date | |
247 | V 27 |
|
259 | V 27 | |
248 |
200 |
|
260 | 2009-06-21T12:39:02.078633Z | |
249 | PROPS-END |
|
261 | PROPS-END | |
250 |
|
262 | |||
251 | Node-path: branches/old/c |
|
263 | Node-path: branches/old/c | |
@@ -254,16 +266,12 b' Node-action: add' | |||||
254 | Node-copyfrom-rev: 3 |
|
266 | Node-copyfrom-rev: 3 | |
255 | Node-copyfrom-path: trunk/b |
|
267 | Node-copyfrom-path: trunk/b | |
256 | Text-copy-source-md5: 3b5d5c3712955042212316173ccf37be |
|
268 | Text-copy-source-md5: 3b5d5c3712955042212316173ccf37be | |
257 | Prop-content-length: 34 |
|
269 | Text-copy-source-sha1: 89e6c98d92887913cadf06b2adb97f26cde4849b | |
258 | Text-content-length: 4 |
|
270 | Text-content-length: 4 | |
259 | Text-content-md5: 33cb6785d50937d8d307ebb66d6259a7 |
|
271 | Text-content-md5: 33cb6785d50937d8d307ebb66d6259a7 | |
260 | Content-length: 38 |
|
272 | Text-content-sha1: 7a6478264aa11a0f4befef356c03e83f2b1f6eba | |
|
273 | Content-length: 4 | |||
261 |
|
274 | |||
262 | K 13 |
|
|||
263 | svn:mergeinfo |
|
|||
264 | V 0 |
|
|||
265 |
|
||||
266 | PROPS-END |
|
|||
267 | b |
|
275 | b | |
268 | c |
|
276 | c | |
269 |
|
277 | |||
@@ -287,7 +295,7 b' pmezard' | |||||
287 | K 8 |
|
295 | K 8 | |
288 | svn:date |
|
296 | svn:date | |
289 | V 27 |
|
297 | V 27 | |
290 |
200 |
|
298 | 2009-06-21T12:39:03.065537Z | |
291 | PROPS-END |
|
299 | PROPS-END | |
292 |
|
300 | |||
293 | Node-path: branches/old/b |
|
301 | Node-path: branches/old/b | |
@@ -295,6 +303,7 b' Node-kind: file' | |||||
295 | Node-action: change |
|
303 | Node-action: change | |
296 | Text-content-length: 6 |
|
304 | Text-content-length: 6 | |
297 | Text-content-md5: cdcfb41554e2d092c13f5e6839e63577 |
|
305 | Text-content-md5: cdcfb41554e2d092c13f5e6839e63577 | |
|
306 | Text-content-sha1: 17ac58cabedebea235d1b5605531d5b1559797e9 | |||
298 | Content-length: 6 |
|
307 | Content-length: 6 | |
299 |
|
308 | |||
300 | b |
|
309 | b | |
@@ -317,7 +326,7 b' pmezard' | |||||
317 | K 8 |
|
326 | K 8 | |
318 | svn:date |
|
327 | svn:date | |
319 | V 27 |
|
328 | V 27 | |
320 | 2008-12-06T12:48:04.150915Z |
|
329 | 2009-06-21T12:39:06.070275Z | |
321 | PROPS-END |
|
330 | PROPS-END | |
322 |
|
331 | |||
323 | Node-path: branches/old2 |
|
332 | Node-path: branches/old2 | |
@@ -346,7 +355,7 b' pmezard' | |||||
346 | K 8 |
|
355 | K 8 | |
347 | svn:date |
|
356 | svn:date | |
348 | V 27 |
|
357 | V 27 | |
349 | 2008-12-06T12:48:06.149560Z |
|
358 | 2009-06-21T12:39:08.082539Z | |
350 | PROPS-END |
|
359 | PROPS-END | |
351 |
|
360 | |||
352 | Node-path: branches/old |
|
361 | Node-path: branches/old | |
@@ -375,7 +384,7 b' pmezard' | |||||
375 | K 8 |
|
384 | K 8 | |
376 | svn:date |
|
385 | svn:date | |
377 | V 27 |
|
386 | V 27 | |
378 | 2008-12-06T12:48:07.268498Z |
|
387 | 2009-06-21T12:39:09.073290Z | |
379 | PROPS-END |
|
388 | PROPS-END | |
380 |
|
389 | |||
381 | Node-path: trunk/a |
|
390 | Node-path: trunk/a | |
@@ -383,6 +392,7 b' Node-kind: file' | |||||
383 | Node-action: change |
|
392 | Node-action: change | |
384 | Text-content-length: 2 |
|
393 | Text-content-length: 2 | |
385 | Text-content-md5: 60b725f10c9c85c70d97880dfe8191b3 |
|
394 | Text-content-md5: 60b725f10c9c85c70d97880dfe8191b3 | |
|
395 | Text-content-sha1: 3f786850e387550fdab836ed7e6dc881de23001b | |||
386 | Content-length: 2 |
|
396 | Content-length: 2 | |
387 |
|
397 | |||
388 | a |
|
398 | a | |
@@ -403,7 +413,7 b' pmezard' | |||||
403 | K 8 |
|
413 | K 8 | |
404 | svn:date |
|
414 | svn:date | |
405 | V 27 |
|
415 | V 27 | |
406 | 2008-12-06T12:48:09.151702Z |
|
416 | 2009-06-21T12:39:11.070264Z | |
407 | PROPS-END |
|
417 | PROPS-END | |
408 |
|
418 | |||
409 | Node-path: branches/old3 |
|
419 | Node-path: branches/old3 |
@@ -1,6 +1,6 b'' | |||||
1 | SVN-fs-dump-format-version: 2 |
|
1 | SVN-fs-dump-format-version: 2 | |
2 |
|
2 | |||
3 | UUID: 0682b859-320d-4a69-a164-a7cab5695072 |
|
3 | UUID: 9de99ecc-876b-46e5-bc59-bff9b2b58b1e | |
4 |
|
4 | |||
5 | Revision-number: 0 |
|
5 | Revision-number: 0 | |
6 | Prop-content-length: 56 |
|
6 | Prop-content-length: 56 | |
@@ -9,7 +9,7 b' Content-length: 56' | |||||
9 | K 8 |
|
9 | K 8 | |
10 | svn:date |
|
10 | svn:date | |
11 | V 27 |
|
11 | V 27 | |
12 |
200 |
|
12 | 2009-06-21T14:32:26.678698Z | |
13 | PROPS-END |
|
13 | PROPS-END | |
14 |
|
14 | |||
15 | Revision-number: 1 |
|
15 | Revision-number: 1 | |
@@ -27,7 +27,7 b' pmezard' | |||||
27 | K 8 |
|
27 | K 8 | |
28 | svn:date |
|
28 | svn:date | |
29 | V 27 |
|
29 | V 27 | |
30 | 2008-12-06T13:33:37.083146Z |
|
30 | 2009-06-21T14:32:27.278689Z | |
31 | PROPS-END |
|
31 | PROPS-END | |
32 |
|
32 | |||
33 | Node-path: trunk |
|
33 | Node-path: trunk | |
@@ -45,6 +45,7 b' Node-action: add' | |||||
45 | Prop-content-length: 10 |
|
45 | Prop-content-length: 10 | |
46 | Text-content-length: 2 |
|
46 | Text-content-length: 2 | |
47 | Text-content-md5: 60b725f10c9c85c70d97880dfe8191b3 |
|
47 | Text-content-md5: 60b725f10c9c85c70d97880dfe8191b3 | |
|
48 | Text-content-sha1: 3f786850e387550fdab836ed7e6dc881de23001b | |||
48 | Content-length: 12 |
|
49 | Content-length: 12 | |
49 |
|
50 | |||
50 | PROPS-END |
|
51 | PROPS-END | |
@@ -66,6 +67,7 b' Node-action: add' | |||||
66 | Prop-content-length: 10 |
|
67 | Prop-content-length: 10 | |
67 | Text-content-length: 2 |
|
68 | Text-content-length: 2 | |
68 | Text-content-md5: 3b5d5c3712955042212316173ccf37be |
|
69 | Text-content-md5: 3b5d5c3712955042212316173ccf37be | |
|
70 | Text-content-sha1: 89e6c98d92887913cadf06b2adb97f26cde4849b | |||
69 | Content-length: 12 |
|
71 | Content-length: 12 | |
70 |
|
72 | |||
71 | PROPS-END |
|
73 | PROPS-END | |
@@ -78,6 +80,7 b' Node-action: add' | |||||
78 | Prop-content-length: 10 |
|
80 | Prop-content-length: 10 | |
79 | Text-content-length: 2 |
|
81 | Text-content-length: 2 | |
80 | Text-content-md5: 2cd6ee2c70b0bde53fbe6cac3c8b8bb1 |
|
82 | Text-content-md5: 2cd6ee2c70b0bde53fbe6cac3c8b8bb1 | |
|
83 | Text-content-sha1: 2b66fd261ee5c6cfc8de7fa466bab600bcfe4f69 | |||
81 | Content-length: 12 |
|
84 | Content-length: 12 | |
82 |
|
85 | |||
83 | PROPS-END |
|
86 | PROPS-END | |
@@ -99,6 +102,7 b' Node-action: add' | |||||
99 | Prop-content-length: 10 |
|
102 | Prop-content-length: 10 | |
100 | Text-content-length: 2 |
|
103 | Text-content-length: 2 | |
101 | Text-content-md5: e29311f6f1bf1af907f9ef9f44b8328b |
|
104 | Text-content-md5: e29311f6f1bf1af907f9ef9f44b8328b | |
|
105 | Text-content-sha1: e983f374794de9c64e3d1c1de1d490c0756eeeff | |||
102 | Content-length: 12 |
|
106 | Content-length: 12 | |
103 |
|
107 | |||
104 | PROPS-END |
|
108 | PROPS-END | |
@@ -120,7 +124,7 b' pmezard' | |||||
120 | K 8 |
|
124 | K 8 | |
121 | svn:date |
|
125 | svn:date | |
122 | V 27 |
|
126 | V 27 | |
123 | 2008-12-06T13:33:38.152773Z |
|
127 | 2009-06-21T14:32:28.312955Z | |
124 | PROPS-END |
|
128 | PROPS-END | |
125 |
|
129 | |||
126 | Node-path: trunk/a |
|
130 | Node-path: trunk/a | |
@@ -128,6 +132,7 b' Node-kind: file' | |||||
128 | Node-action: change |
|
132 | Node-action: change | |
129 | Text-content-length: 4 |
|
133 | Text-content-length: 4 | |
130 | Text-content-md5: 0d227f1abf8c2932d342e9b99cc957eb |
|
134 | Text-content-md5: 0d227f1abf8c2932d342e9b99cc957eb | |
|
135 | Text-content-sha1: d7c8127a20a396cff08af086a1c695b0636f0c29 | |||
131 | Content-length: 4 |
|
136 | Content-length: 4 | |
132 |
|
137 | |||
133 | a |
|
138 | a | |
@@ -139,6 +144,7 b' Node-kind: file' | |||||
139 | Node-action: change |
|
144 | Node-action: change | |
140 | Text-content-length: 4 |
|
145 | Text-content-length: 4 | |
141 | Text-content-md5: 63fad9092ad37713ebe26b3193f89c41 |
|
146 | Text-content-md5: 63fad9092ad37713ebe26b3193f89c41 | |
|
147 | Text-content-sha1: ccfb93b7bac6f1520f0adc0eebc2cafe9da80f42 | |||
142 | Content-length: 4 |
|
148 | Content-length: 4 | |
143 |
|
149 | |||
144 | c |
|
150 | c | |
@@ -160,7 +166,7 b' pmezard' | |||||
160 | K 8 |
|
166 | K 8 | |
161 | svn:date |
|
167 | svn:date | |
162 | V 27 |
|
168 | V 27 | |
163 |
200 |
|
169 | 2009-06-21T14:32:29.183467Z | |
164 | PROPS-END |
|
170 | PROPS-END | |
165 |
|
171 | |||
166 | Node-path: subproject |
|
172 | Node-path: subproject | |
@@ -189,7 +195,7 b' pmezard' | |||||
189 | K 8 |
|
195 | K 8 | |
190 | svn:date |
|
196 | svn:date | |
191 | V 27 |
|
197 | V 27 | |
192 | 2008-12-06T13:33:40.179944Z |
|
198 | 2009-06-21T14:32:30.300975Z | |
193 | PROPS-END |
|
199 | PROPS-END | |
194 |
|
200 | |||
195 | Node-path: subproject/trunk |
|
201 | Node-path: subproject/trunk | |
@@ -216,7 +222,7 b' pmezard' | |||||
216 | K 8 |
|
222 | K 8 | |
217 | svn:date |
|
223 | svn:date | |
218 | V 27 |
|
224 | V 27 | |
219 | 2008-12-06T13:33:41.184505Z |
|
225 | 2009-06-21T14:32:31.354398Z | |
220 | PROPS-END |
|
226 | PROPS-END | |
221 |
|
227 | |||
222 | Node-path: subproject/branches |
|
228 | Node-path: subproject/branches | |
@@ -243,7 +249,7 b' pmezard' | |||||
243 | K 8 |
|
249 | K 8 | |
244 | svn:date |
|
250 | svn:date | |
245 | V 27 |
|
251 | V 27 | |
246 | 2008-12-06T13:33:42.153312Z |
|
252 | 2009-06-21T14:32:32.121901Z | |
247 | PROPS-END |
|
253 | PROPS-END | |
248 |
|
254 | |||
249 | Node-path: subproject/trunk/d1 |
|
255 | Node-path: subproject/trunk/d1 | |
@@ -272,7 +278,7 b' pmezard' | |||||
272 | K 8 |
|
278 | K 8 | |
273 | svn:date |
|
279 | svn:date | |
274 | V 27 |
|
280 | V 27 | |
275 | 2008-12-06T13:33:42.206313Z |
|
281 | 2009-06-21T14:32:32.317815Z | |
276 | PROPS-END |
|
282 | PROPS-END | |
277 |
|
283 | |||
278 | Node-path: subproject/trunk/d2 |
|
284 | Node-path: subproject/trunk/d2 | |
@@ -301,7 +307,7 b' pmezard' | |||||
301 | K 8 |
|
307 | K 8 | |
302 | svn:date |
|
308 | svn:date | |
303 | V 27 |
|
309 | V 27 | |
304 |
200 |
|
310 | 2009-06-21T14:32:33.418320Z | |
305 | PROPS-END |
|
311 | PROPS-END | |
306 |
|
312 | |||
307 | Node-path: subproject/trunk/d1/b |
|
313 | Node-path: subproject/trunk/d1/b | |
@@ -309,6 +315,7 b' Node-kind: file' | |||||
309 | Node-action: change |
|
315 | Node-action: change | |
310 | Text-content-length: 4 |
|
316 | Text-content-length: 4 | |
311 | Text-content-md5: 06ac26ed8b614fc0b141e4542aa067c2 |
|
317 | Text-content-md5: 06ac26ed8b614fc0b141e4542aa067c2 | |
|
318 | Text-content-sha1: f6980469e74f7125178e88ec571e06fe6ce86e95 | |||
312 | Content-length: 4 |
|
319 | Content-length: 4 | |
313 |
|
320 | |||
314 | b |
|
321 | b | |
@@ -334,7 +341,7 b' pmezard' | |||||
334 | K 8 |
|
341 | K 8 | |
335 | svn:date |
|
342 | svn:date | |
336 | V 27 |
|
343 | V 27 | |
337 |
200 |
|
344 | 2009-06-21T14:32:34.126542Z | |
338 | PROPS-END |
|
345 | PROPS-END | |
339 |
|
346 | |||
340 | Node-path: subproject/branches/d1 |
|
347 | Node-path: subproject/branches/d1 | |
@@ -363,7 +370,7 b' pmezard' | |||||
363 | K 8 |
|
370 | K 8 | |
364 | svn:date |
|
371 | svn:date | |
365 | V 27 |
|
372 | V 27 | |
366 | 2008-12-06T13:33:44.298011Z |
|
373 | 2009-06-21T14:32:34.436015Z | |
367 | PROPS-END |
|
374 | PROPS-END | |
368 |
|
375 | |||
369 | Node-path: subproject/trunk/d |
|
376 | Node-path: subproject/trunk/d | |
@@ -372,6 +379,7 b' Node-action: add' | |||||
372 | Node-copyfrom-rev: 7 |
|
379 | Node-copyfrom-rev: 7 | |
373 | Node-copyfrom-path: subproject/trunk/d2/d |
|
380 | Node-copyfrom-path: subproject/trunk/d2/d | |
374 | Text-copy-source-md5: e29311f6f1bf1af907f9ef9f44b8328b |
|
381 | Text-copy-source-md5: e29311f6f1bf1af907f9ef9f44b8328b | |
|
382 | Text-copy-source-sha1: e983f374794de9c64e3d1c1de1d490c0756eeeff | |||
375 |
|
383 | |||
376 |
|
384 | |||
377 | Revision-number: 11 |
|
385 | Revision-number: 11 | |
@@ -389,7 +397,7 b' pmezard' | |||||
389 | K 8 |
|
397 | K 8 | |
390 | svn:date |
|
398 | svn:date | |
391 | V 27 |
|
399 | V 27 | |
392 | 2008-12-06T13:33:44.349920Z |
|
400 | 2009-06-21T14:32:34.803189Z | |
393 | PROPS-END |
|
401 | PROPS-END | |
394 |
|
402 | |||
395 | Node-path: subproject/trunk/d2 |
|
403 | Node-path: subproject/trunk/d2 | |
@@ -399,3 +407,94 b' Node-copyfrom-rev: 7' | |||||
399 | Node-copyfrom-path: subproject/trunk/d2 |
|
407 | Node-copyfrom-path: subproject/trunk/d2 | |
400 |
|
408 | |||
401 |
|
409 | |||
|
410 | Revision-number: 12 | |||
|
411 | Prop-content-length: 107 | |||
|
412 | Content-length: 107 | |||
|
413 | ||||
|
414 | K 7 | |||
|
415 | svn:log | |||
|
416 | V 6 | |||
|
417 | add d3 | |||
|
418 | K 10 | |||
|
419 | svn:author | |||
|
420 | V 7 | |||
|
421 | pmezard | |||
|
422 | K 8 | |||
|
423 | svn:date | |||
|
424 | V 27 | |||
|
425 | 2009-06-21T14:32:36.531735Z | |||
|
426 | PROPS-END | |||
|
427 | ||||
|
428 | Node-path: subproject/trunk/d3 | |||
|
429 | Node-kind: dir | |||
|
430 | Node-action: add | |||
|
431 | Prop-content-length: 10 | |||
|
432 | Content-length: 10 | |||
|
433 | ||||
|
434 | PROPS-END | |||
|
435 | ||||
|
436 | ||||
|
437 | Node-path: subproject/trunk/d3/d31 | |||
|
438 | Node-kind: dir | |||
|
439 | Node-action: add | |||
|
440 | Prop-content-length: 10 | |||
|
441 | Content-length: 10 | |||
|
442 | ||||
|
443 | PROPS-END | |||
|
444 | ||||
|
445 | ||||
|
446 | Node-path: subproject/trunk/d3/d31/e | |||
|
447 | Node-kind: file | |||
|
448 | Node-action: add | |||
|
449 | Prop-content-length: 10 | |||
|
450 | Text-content-length: 2 | |||
|
451 | Text-content-md5: 9ffbf43126e33be52cd2bf7e01d627f9 | |||
|
452 | Text-content-sha1: 094e3afb2fe8dfe82f63731cdcd3b999f4856cff | |||
|
453 | Content-length: 12 | |||
|
454 | ||||
|
455 | PROPS-END | |||
|
456 | e | |||
|
457 | ||||
|
458 | ||||
|
459 | Node-path: subproject/trunk/d3/f | |||
|
460 | Node-kind: file | |||
|
461 | Node-action: add | |||
|
462 | Prop-content-length: 10 | |||
|
463 | Text-content-length: 2 | |||
|
464 | Text-content-md5: 9a8ad92c50cae39aa2c5604fd0ab6d8c | |||
|
465 | Text-content-sha1: a9fcd54b25e7e863d72cd47c08af46e61b74b561 | |||
|
466 | Content-length: 12 | |||
|
467 | ||||
|
468 | PROPS-END | |||
|
469 | f | |||
|
470 | ||||
|
471 | ||||
|
472 | Revision-number: 13 | |||
|
473 | Prop-content-length: 128 | |||
|
474 | Content-length: 128 | |||
|
475 | ||||
|
476 | K 7 | |||
|
477 | svn:log | |||
|
478 | V 26 | |||
|
479 | copy dir and remove subdir | |||
|
480 | K 10 | |||
|
481 | svn:author | |||
|
482 | V 7 | |||
|
483 | pmezard | |||
|
484 | K 8 | |||
|
485 | svn:date | |||
|
486 | V 27 | |||
|
487 | 2009-06-21T14:32:38.281829Z | |||
|
488 | PROPS-END | |||
|
489 | ||||
|
490 | Node-path: subproject/trunk/d3/d31 | |||
|
491 | Node-action: delete | |||
|
492 | ||||
|
493 | ||||
|
494 | Node-path: subproject/trunk/d4 | |||
|
495 | Node-kind: dir | |||
|
496 | Node-action: add | |||
|
497 | Node-copyfrom-rev: 12 | |||
|
498 | Node-copyfrom-path: subproject/trunk/d3 | |||
|
499 | ||||
|
500 |
@@ -22,15 +22,19 b' cd project' | |||||
22 | echo a > trunk/a |
|
22 | echo a > trunk/a | |
23 | echo b > trunk/b |
|
23 | echo b > trunk/b | |
24 | echo c > trunk/c |
|
24 | echo c > trunk/c | |
|
25 | mkdir trunk/dir | |||
|
26 | echo e > trunk/dir/e | |||
25 | # Add a file within branches, used to confuse branch detection |
|
27 | # Add a file within branches, used to confuse branch detection | |
26 | echo d > branches/notinbranch |
|
28 | echo d > branches/notinbranch | |
27 | svn add trunk/a trunk/b trunk/c branches/notinbranch |
|
29 | svn add trunk/a trunk/b trunk/c trunk/dir branches/notinbranch | |
28 | svn ci -m hello |
|
30 | svn ci -m hello | |
|
31 | svn up | |||
29 |
|
32 | |||
30 | # Branch to old |
|
33 | # Branch to old | |
31 | svn copy trunk branches/old |
|
34 | svn copy trunk branches/old | |
32 | svn rm branches/old/c |
|
35 | svn rm branches/old/c | |
33 | svn ci -m "branch trunk, remove c" |
|
36 | svn rm branches/old/dir | |
|
37 | svn ci -m "branch trunk, remove c and dir" | |||
34 | svn up |
|
38 | svn up | |
35 |
|
39 | |||
36 | # Update trunk |
|
40 | # Update trunk |
@@ -57,6 +57,17 b' else' | |||||
57 | # Copy a directory from a past revision |
|
57 | # Copy a directory from a past revision | |
58 | svn copy -r 7 $svnurl/subproject/trunk/d2 $svnurl/subproject/trunk -m copydirfrompast |
|
58 | svn copy -r 7 $svnurl/subproject/trunk/d2 $svnurl/subproject/trunk -m copydirfrompast | |
59 | fi |
|
59 | fi | |
|
60 | ||||
|
61 | # Copy a directory while removing a subdirectory | |||
|
62 | svn up | |||
|
63 | mkdir -p subproject/trunk/d3/d31 | |||
|
64 | echo e > subproject/trunk/d3/d31/e | |||
|
65 | echo f > subproject/trunk/d3/f | |||
|
66 | svn add subproject/trunk/d3 | |||
|
67 | svn ci -m "add d3" | |||
|
68 | svn copy subproject/trunk/d3 subproject/trunk/d4 | |||
|
69 | svn rm subproject/trunk/d3/d31 | |||
|
70 | svn ci -m "copy dir and remove subdir" | |||
60 | cd .. |
|
71 | cd .. | |
61 |
|
72 | |||
62 | svnadmin dump svn-repo > ../move.svndump No newline at end of file |
|
73 | svnadmin dump svn-repo > ../move.svndump |
@@ -5,7 +5,7 b' sorting...' | |||||
5 | converting... |
|
5 | converting... | |
6 | 10 init projA |
|
6 | 10 init projA | |
7 | 9 hello |
|
7 | 9 hello | |
8 | 8 branch trunk, remove c |
|
8 | 8 branch trunk, remove c and dir | |
9 | 7 change a |
|
9 | 7 change a | |
10 | 6 change b |
|
10 | 6 change b | |
11 | 5 move and update c |
|
11 | 5 move and update c | |
@@ -37,9 +37,9 b' o branch=newbranch 11 branch trunk@1 in' | |||||
37 | | | | |
|
37 | | | | | |
38 | | o | branch= 3 change a files: a |
|
38 | | o | branch= 3 change a files: a | |
39 | | | | |
|
39 | | | | | |
40 |
|
|
40 | | | o branch=old 2 branch trunk, remove c and dir files: c | |
41 | | | |
|
41 | | |/ | |
42 | | o branch= 1 hello files: a b c |
|
42 | | o branch= 1 hello files: a b c dir/e | |
43 | |/ |
|
43 | |/ | |
44 | o branch= 0 init projA files: |
|
44 | o branch= 0 init projA files: | |
45 |
|
45 |
@@ -3,16 +3,22 b' initializing destination A-hg repository' | |||||
3 | scanning source... |
|
3 | scanning source... | |
4 | sorting... |
|
4 | sorting... | |
5 | converting... |
|
5 | converting... | |
6 |
|
|
6 | 11 createtrunk | |
7 |
|
|
7 | 10 moved1 | |
8 |
|
|
8 | 9 moved1 | |
9 |
|
|
9 | 8 moved2 | |
10 |
|
|
10 | 7 changeb and rm d2 | |
11 |
|
|
11 | 6 changeb and rm d2 | |
12 |
|
|
12 | 5 moved1again | |
13 |
|
|
13 | 4 moved1again | |
14 |
|
|
14 | 3 copyfilefrompast | |
15 |
|
|
15 | 2 copydirfrompast | |
|
16 | 1 add d3 | |||
|
17 | 0 copy dir and remove subdir | |||
|
18 | o 11 copy dir and remove subdir files: d3/d31/e d4/d31/e d4/f | |||
|
19 | | | |||
|
20 | o 10 add d3 files: d3/d31/e d3/f | |||
|
21 | | | |||
16 | o 9 copydirfrompast files: d2/d |
|
22 | o 9 copydirfrompast files: d2/d | |
17 | | |
|
23 | | | |
18 | o 8 copyfilefrompast files: d |
|
24 | o 8 copyfilefrompast files: d | |
@@ -33,5 +39,5 b' o | 2 moved1 files: d1/b d1/c' | |||||
33 | | |
|
39 | | | |
34 | o 0 createtrunk files: |
|
40 | o 0 createtrunk files: | |
35 |
|
41 | |||
36 |
default |
|
42 | default 11: | |
37 | d1 6: |
|
43 | d1 6: |
General Comments 0
You need to be logged in to leave comments.
Login now