test for git empty new files
authorBrendan Cully <brendan@kublai.com>
Mon, 30 Oct 2006 16:14:38 -0800
changeset 3589 1c9b6f1237e0
parent 3588 45574a225632
child 3590 231e61de692c
child 3594 5f08389bcf06
test for git empty new files
tests/test-git-import
tests/test-git-import.out
--- a/tests/test-git-import	Mon Oct 30 16:10:58 2006 -0800
+++ b/tests/test-git-import	Mon Oct 30 16:14:38 2006 -0800
@@ -14,6 +14,13 @@
 +a
 EOF
 
+echo % new empty file
+hg import -mempty - <<EOF
+diff --git a/empty b/empty
+new file mode 100644
+EOF
+hg locate empty
+
 echo % chmod +x
 hg import -msetx - <<EOF
 diff --git a/new b/new
--- a/tests/test-git-import.out	Mon Oct 30 16:10:58 2006 -0800
+++ b/tests/test-git-import.out	Mon Oct 30 16:14:38 2006 -0800
@@ -1,5 +1,8 @@
 % new file
 applying patch from stdin
+% new empty file
+applying patch from stdin
+empty
 % chmod +x
 applying patch from stdin
 % copy
@@ -9,10 +12,12 @@
 % rename
 applying patch from stdin
 copyx
+empty
 new
 rename
 % delete
 applying patch from stdin
+empty
 new
 rename
 % regular diff