##// END OF EJS Templates
test for git empty new files
Brendan Cully -
r3589:1c9b6f12 default
parent child Browse files
Show More
@@ -14,6 +14,13 b' index 0000000..7898192'
14 +a
14 +a
15 EOF
15 EOF
16
16
17 echo % new empty file
18 hg import -mempty - <<EOF
19 diff --git a/empty b/empty
20 new file mode 100644
21 EOF
22 hg locate empty
23
17 echo % chmod +x
24 echo % chmod +x
18 hg import -msetx - <<EOF
25 hg import -msetx - <<EOF
19 diff --git a/new b/new
26 diff --git a/new b/new
@@ -1,5 +1,8 b''
1 % new file
1 % new file
2 applying patch from stdin
2 applying patch from stdin
3 % new empty file
4 applying patch from stdin
5 empty
3 % chmod +x
6 % chmod +x
4 applying patch from stdin
7 applying patch from stdin
5 % copy
8 % copy
@@ -9,10 +12,12 b' a'
9 % rename
12 % rename
10 applying patch from stdin
13 applying patch from stdin
11 copyx
14 copyx
15 empty
12 new
16 new
13 rename
17 rename
14 % delete
18 % delete
15 applying patch from stdin
19 applying patch from stdin
20 empty
16 new
21 new
17 rename
22 rename
18 % regular diff
23 % regular diff
General Comments 0
You need to be logged in to leave comments. Login now