##// END OF EJS Templates
tests: unify test-convert-bzr-114
Matt Mackall -
r12513:d1f88ae4 default
parent child Browse files
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
5 The file/directory replacement can only be reproduced on
4
6 bzr >= 1.4. Merge it back in test-convert-bzr-directories once
5 . "$TESTDIR/bzr-definitions"
7 this version becomes mainstream.
8 replace file with dir
6
9
7 # The file/directory replacement can only be reproduced on
10 $ mkdir test-replace-file-with-dir
8 # bzr >= 1.4. Merge it back in test-convert-bzr-directories once
11 $ cd test-replace-file-with-dir
9 # this version becomes mainstream.
12 $ bzr init -q source
10 echo % replace file with dir
13 $ cd source
11 mkdir test-replace-file-with-dir
14 $ echo d > d
12 cd test-replace-file-with-dir
15 $ bzr add -q d
13 bzr init -q source
16 $ bzr commit -q -m 'add d file'
14 cd source
17 $ rm d
15 echo d > d
18 $ mkdir d
16 bzr add -q d
19 $ bzr add -q d
17 bzr commit -q -m 'add d file'
20 $ bzr commit -q -m 'replace with d dir'
18 rm d
21 $ echo a > d/a
19 mkdir d
22 $ bzr add -q d/a
20 bzr add -q d
23 $ bzr commit -q -m 'add d/a'
21 bzr commit -q -m 'replace with d dir'
24 $ cd ..
22 echo a > d/a
25 $ hg convert source source-hg
23 bzr add -q d/a
26 initializing destination source-hg repository
24 bzr commit -q -m 'add d/a'
27 scanning source...
25 cd ..
28 sorting...
26 hg convert source source-hg
29 converting...
27 manifest source-hg tip
30 2 add d file
28 cd source-hg
31 1 replace with d dir
29 hg update
32 0 add d/a
30 cd ../..
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
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now