tests/test-git-import
changeset 3716 ab5600428b08
parent 3701 05c8704a3743
child 3717 9e248cfd8b94
--- a/tests/test-git-import
+++ b/tests/test-git-import
@@ -143,3 +143,22 @@ hg locate rename2 rename3 rename3-2
 hg cat rename3
 echo
 hg cat rename3-2
+
+echo foo > foo
+hg add foo
+hg ci -m 'add foo'
+echo % binary files and regular patch hunks
+hg import -m binaryregular - <<EOF
+diff --git a/binary b/binary
+new file mode 100644
+index 0000000000000000000000000000000000000000..593f4708db84ac8fd0f5cc47c634f38c013fe9e4
+GIT binary patch
+literal 4
+Lc\${NkU|;|M00aO5
+
+diff --git a/foo b/foo2
+rename from foo
+rename to foo2
+EOF
+cat foo2
+hg manifest | grep binary