diff 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
line wrap: on
line diff
--- a/tests/test-convert-bzr	Fri Apr 10 13:00:28 2009 +0200
+++ b/tests/test-convert-bzr	Sat Apr 11 20:18:51 2009 +0200
@@ -9,12 +9,15 @@
 cd source
 echo a > a
 echo c > c
-bzr add -q a c
-bzr commit -q -m 'Initial add: a, c'
+echo e > e
+bzr add -q a c e
+bzr commit -q -m 'Initial add: a, c, e'
 bzr mv a b
 bzr mv c d
+bzr mv e f
 echo a2 >> a
-bzr add -q a
+mkdir e
+bzr add -q a e
 bzr commit -q -m 'rename a into b, create a, rename c into d'
 cd ..
 hg convert source source-hg