Show More
@@ -1,30 +1,39 b'' | |||
|
1 | #!/bin/sh | |
|
1 | ||
|
2 | $ "$TESTDIR/hghave" bzr114 || exit 80 | |
|
3 | $ . "$TESTDIR/bzr-definitions" | |
|
2 | 4 | |
|
3 | "$TESTDIR/hghave" bzr114 || exit 80 | |
|
4 | ||
|
5 | . "$TESTDIR/bzr-definitions" | |
|
5 | The file/directory replacement can only be reproduced on | |
|
6 | bzr >= 1.4. Merge it back in test-convert-bzr-directories once | |
|
7 | this version becomes mainstream. | |
|
8 | replace file with dir | |
|
6 | 9 | |
|
7 | # The file/directory replacement can only be reproduced on | |
|
8 | # bzr >= 1.4. Merge it back in test-convert-bzr-directories once | |
|
9 | # this version becomes mainstream. | |
|
10 | echo % replace file with dir | |
|
11 | mkdir test-replace-file-with-dir | |
|
12 | cd test-replace-file-with-dir | |
|
13 | bzr init -q source | |
|
14 | cd source | |
|
15 | echo d > d | |
|
16 | bzr add -q d | |
|
17 |
bzr commit -q -m ' |
|
|
18 | rm d | |
|
19 | mkdir d | |
|
20 | bzr add -q d | |
|
21 | bzr commit -q -m 'replace with d dir' | |
|
22 | echo a > d/a | |
|
23 | bzr add -q d/a | |
|
24 | bzr commit -q -m 'add d/a' | |
|
25 | cd .. | |
|
26 | hg convert source source-hg | |
|
27 | manifest source-hg tip | |
|
28 | cd source-hg | |
|
29 | hg update | |
|
30 | cd ../.. | |
|
10 | $ mkdir test-replace-file-with-dir | |
|
11 | $ cd test-replace-file-with-dir | |
|
12 | $ bzr init -q source | |
|
13 | $ cd source | |
|
14 | $ echo d > d | |
|
15 | $ bzr add -q d | |
|
16 | $ bzr commit -q -m 'add d file' | |
|
17 | $ rm d | |
|
18 | $ mkdir d | |
|
19 | $ bzr add -q d | |
|
20 | $ bzr commit -q -m 'replace with d dir' | |
|
21 | $ echo a > d/a | |
|
22 | $ bzr add -q d/a | |
|
23 | $ bzr commit -q -m 'add d/a' | |
|
24 | $ cd .. | |
|
25 | $ hg convert source source-hg | |
|
26 | initializing destination source-hg repository | |
|
27 | scanning source... | |
|
28 | sorting... | |
|
29 | converting... | |
|
30 | 2 add d file | |
|
31 | 1 replace with d dir | |
|
32 | 0 add d/a | |
|
33 | $ manifest source-hg tip | |
|
34 | % manifest of tip | |
|
35 | 644 d/a | |
|
36 | $ cd source-hg | |
|
37 | $ hg update | |
|
38 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
39 | $ cd ../.. |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now