changeset 3589:1c9b6f1237e0

test for git empty new files
author Brendan Cully <brendan@kublai.com>
date Mon, 30 Oct 2006 16:14:38 -0800
parents 45574a225632
children 231e61de692c 5f08389bcf06
files tests/test-git-import tests/test-git-import.out
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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