Mercurial > hg
comparison tests/test-convert-bzr @ 8045:e09a2f2ef85d
convert/bzr: fix file rename replaced by a dir case (issue1583)
We were not checking entry types, and getting file content was working with
directories instead of raising IOError.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 11 Apr 2009 20:18:51 +0200 |
parents | dbcf5d52fcf5 |
children | adce97d28389 |
comparison
equal
deleted
inserted
replaced
8041:87c5a4af0b5a | 8045:e09a2f2ef85d |
---|---|
7 cd test-createandrename | 7 cd test-createandrename |
8 bzr init -q source | 8 bzr init -q source |
9 cd source | 9 cd source |
10 echo a > a | 10 echo a > a |
11 echo c > c | 11 echo c > c |
12 bzr add -q a c | 12 echo e > e |
13 bzr commit -q -m 'Initial add: a, c' | 13 bzr add -q a c e |
14 bzr commit -q -m 'Initial add: a, c, e' | |
14 bzr mv a b | 15 bzr mv a b |
15 bzr mv c d | 16 bzr mv c d |
17 bzr mv e f | |
16 echo a2 >> a | 18 echo a2 >> a |
17 bzr add -q a | 19 mkdir e |
20 bzr add -q a e | |
18 bzr commit -q -m 'rename a into b, create a, rename c into d' | 21 bzr commit -q -m 'rename a into b, create a, rename c into d' |
19 cd .. | 22 cd .. |
20 hg convert source source-hg | 23 hg convert source source-hg |
21 glog -R source-hg | 24 glog -R source-hg |
22 echo "% manifest" | 25 echo "% manifest" |