tests/test-convert-git
changeset 7223 5d14b06b1cc1
parent 6737 7239e06e58e9
parent 7222 c1dc903dc7b6
child 8271 e3d3dad805f9
--- a/tests/test-convert-git	Wed Oct 22 19:40:32 2008 -0500
+++ b/tests/test-convert-git	Thu Oct 23 15:44:23 2008 +0200
@@ -132,3 +132,20 @@
 
 splitrepo 'only some parents of an octopus merge; "discard" a head' 'foo baz quux'
 
+echo
+echo '% test binary conversion (issue 1359)'
+mkdir git-repo3
+cd git-repo3
+git init-db >/dev/null 2>/dev/null
+python -c 'file("b", "wb").write("".join([chr(i) for i in range(256)])*16)'
+git add b
+commit -a -m addbinary
+cd ..
+
+echo '% convert binary file'
+hg convert git-repo3 git-repo3-hg
+
+cd git-repo3-hg
+hg up -C
+python -c 'print len(file("b", "rb").read())'
+