Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t6000-t6999: fix broken &&-chains
author
Eric Sunshine
<sunshine@sunshineco.com>
Mon, 2 Jul 2018 00:24:02 +0000
(20:24 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 16 Jul 2018 21:38:47 +0000
(14:38 -0700)
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6010-merge-base.sh
patch
|
blob
|
history
t/t6029-merge-subtree.sh
patch
|
blob
|
history
t/t6036-recursive-corner-cases.sh
patch
|
blob
|
history
t/t6042-merge-rename-corner-cases.sh
patch
|
blob
|
history
t/t6043-merge-rename-directories.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
51b8547
)
diff --git
a/t/t6010-merge-base.sh
b/t/t6010-merge-base.sh
index aa2d360ce35940a176a0ef04ca7ba8560adefb23..44c726ea397cf10a2c522690653ecb696f96cc8b 100755
(executable)
--- a/
t/t6010-merge-base.sh
+++ b/
t/t6010-merge-base.sh
@@
-245,7
+245,7
@@
test_expect_success 'using reflog to find the fork point' '
git commit --allow-empty -m "Derived #$count" &&
git rev-parse HEAD >derived$count &&
git checkout -B base $E || exit 1
git commit --allow-empty -m "Derived #$count" &&
git rev-parse HEAD >derived$count &&
git checkout -B base $E || exit 1
- done
+ done
&&
for count in 1 2 3
do
for count in 1 2 3
do
diff --git
a/t/t6029-merge-subtree.sh
b/t/t6029-merge-subtree.sh
index 3e692454a719324a7ed3c12238416f45df080efa..7d5bc784721411a3abe475a8ed9f291204072b7d 100755
(executable)
--- a/
t/t6029-merge-subtree.sh
+++ b/
t/t6029-merge-subtree.sh
@@
-55,7
+55,7
@@
test_expect_success 'initial merge' '
git checkout -b work &&
git ls-files -s >actual &&
(
git checkout -b work &&
git ls-files -s >actual &&
(
- echo "100644 $o1 0 git-gui/git-gui.sh"
+ echo "100644 $o1 0 git-gui/git-gui.sh"
&&
echo "100644 $o2 0 git.c"
) >expected &&
test_cmp expected actual
echo "100644 $o2 0 git.c"
) >expected &&
test_cmp expected actual
@@
-72,7
+72,7
@@
test_expect_success 'merge update' '
git pull -s subtree gui master2 &&
git ls-files -s >actual &&
(
git pull -s subtree gui master2 &&
git ls-files -s >actual &&
(
- echo "100644 $o3 0 git-gui/git-gui.sh"
+ echo "100644 $o3 0 git-gui/git-gui.sh"
&&
echo "100644 $o2 0 git.c"
) >expected &&
test_cmp expected actual
echo "100644 $o2 0 git.c"
) >expected &&
test_cmp expected actual
@@
-88,8
+88,8
@@
test_expect_success 'initial ambiguous subtree' '
git checkout -b work2 &&
git ls-files -s >actual &&
(
git checkout -b work2 &&
git ls-files -s >actual &&
(
- echo "100644 $o1 0 git-gui/git-gui.sh"
- echo "100644 $o1 0 git-gui2/git-gui.sh"
+ echo "100644 $o1 0 git-gui/git-gui.sh"
&&
+ echo "100644 $o1 0 git-gui2/git-gui.sh"
&&
echo "100644 $o2 0 git.c"
) >expected &&
test_cmp expected actual
echo "100644 $o2 0 git.c"
) >expected &&
test_cmp expected actual
@@
-101,8
+101,8
@@
test_expect_success 'merge using explicit' '
git pull -Xsubtree=git-gui gui master2 &&
git ls-files -s >actual &&
(
git pull -Xsubtree=git-gui gui master2 &&
git ls-files -s >actual &&
(
- echo "100644 $o3 0 git-gui/git-gui.sh"
- echo "100644 $o1 0 git-gui2/git-gui.sh"
+ echo "100644 $o3 0 git-gui/git-gui.sh"
&&
+ echo "100644 $o1 0 git-gui2/git-gui.sh"
&&
echo "100644 $o2 0 git.c"
) >expected &&
test_cmp expected actual
echo "100644 $o2 0 git.c"
) >expected &&
test_cmp expected actual
@@
-114,8
+114,8
@@
test_expect_success 'merge2 using explicit' '
git pull -Xsubtree=git-gui2 gui master2 &&
git ls-files -s >actual &&
(
git pull -Xsubtree=git-gui2 gui master2 &&
git ls-files -s >actual &&
(
- echo "100644 $o1 0 git-gui/git-gui.sh"
- echo "100644 $o3 0 git-gui2/git-gui.sh"
+ echo "100644 $o1 0 git-gui/git-gui.sh"
&&
+ echo "100644 $o3 0 git-gui2/git-gui.sh"
&&
echo "100644 $o2 0 git.c"
) >expected &&
test_cmp expected actual
echo "100644 $o2 0 git.c"
) >expected &&
test_cmp expected actual
diff --git
a/t/t6036-recursive-corner-cases.sh
b/t/t6036-recursive-corner-cases.sh
index b32ff8e1dbaa7279ae5bd6a7a493da93ec9a259d..892cf08743007aec0424edd6d7428489109ead59 100755
(executable)
--- a/
t/t6036-recursive-corner-cases.sh
+++ b/
t/t6036-recursive-corner-cases.sh
@@
-72,7
+72,7
@@
test_expect_success 'merge simple rename+criss-cross with no modifications' '
git rev-parse >actual \
:2:three :3:three &&
git hash-object >>actual \
git rev-parse >actual \
:2:three :3:three &&
git hash-object >>actual \
- three~HEAD three~R2^0
+ three~HEAD three~R2^0
&&
test_cmp expect actual
)
'
test_cmp expect actual
)
'
@@
-148,7
+148,7
@@
test_expect_success 'merge criss-cross + rename merges with basic modification'
git rev-parse >actual \
:2:three :3:three &&
git hash-object >>actual \
git rev-parse >actual \
:2:three :3:three &&
git hash-object >>actual \
- three~HEAD three~R2^0
+ three~HEAD three~R2^0
&&
test_cmp expect actual
)
'
test_cmp expect actual
)
'
@@
-228,7
+228,7
@@
test_expect_success 'git detects differently handled merges conflict' '
D:new_a E:new_a &&
git rev-parse >actual \
:2:new_a :3:new_a &&
D:new_a E:new_a &&
git rev-parse >actual \
:2:new_a :3:new_a &&
- test_cmp expect actual
+ test_cmp expect actual
&&
git cat-file -p B:new_a >ours &&
git cat-file -p C:new_a >theirs &&
git cat-file -p B:new_a >ours &&
git cat-file -p C:new_a >theirs &&
diff --git
a/t/t6042-merge-rename-corner-cases.sh
b/t/t6042-merge-rename-corner-cases.sh
index 1cbd946fc2eb9ab3dcad83c811abb6d18448fc4e..661b633478fae7ceeb50736a4c675e7b95f5042a 100755
(executable)
--- a/
t/t6042-merge-rename-corner-cases.sh
+++ b/
t/t6042-merge-rename-corner-cases.sh
@@
-352,7
+352,7
@@
test_expect_success 'rename/directory conflict + content merge conflict' '
base:file left-conflict:newfile right:file &&
git rev-parse >actual \
:1:newfile :2:newfile :3:newfile &&
base:file left-conflict:newfile right:file &&
git rev-parse >actual \
:1:newfile :2:newfile :3:newfile &&
- test_cmp expect actual
+ test_cmp expect actual
&&
test_path_is_file newfile/realfile &&
test_path_is_file newfile~HEAD
test_path_is_file newfile/realfile &&
test_path_is_file newfile~HEAD
@@
-580,7
+580,7
@@
test_expect_failure 'detect conflict with rename/rename(1to2)/add-source merge'
C:a A:a B:b C:C &&
git rev-parse >actual \
:3:a :1:a :2:b :3:c &&
C:a A:a B:b C:C &&
git rev-parse >actual \
:3:a :1:a :2:b :3:c &&
- test_cmp expect actual
+ test_cmp expect actual
&&
test_path_is_file a &&
test_path_is_file b &&
test_path_is_file a &&
test_path_is_file b &&
@@
-680,13
+680,13
@@
test_expect_success 'rename/rename/add-dest merge still knows about conflicting
A:a C:b B:b C:c B:c &&
git rev-parse >actual \
:1:a :2:b :3:b :2:c :3:c &&
A:a C:b B:b C:c B:c &&
git rev-parse >actual \
:1:a :2:b :3:b :2:c :3:c &&
- test_cmp expect actual
+ test_cmp expect actual
&&
git rev-parse >expect \
C:c B:c C:b B:b &&
git hash-object >actual \
c~HEAD c~B\^0 b~HEAD b~B\^0 &&
git rev-parse >expect \
C:c B:c C:b B:b &&
git hash-object >actual \
c~HEAD c~B\^0 b~HEAD b~B\^0 &&
- test_cmp expect actual
+ test_cmp expect actual
&&
test_path_is_missing b &&
test_path_is_missing c
test_path_is_missing b &&
test_path_is_missing c
diff --git
a/t/t6043-merge-rename-directories.sh
b/t/t6043-merge-rename-directories.sh
index 2e28f2908d5571715aeddaa0962bb8adf4e14591..4a71f17edd69a2cb6962cf759aa6ad1b7604c2db 100755
(executable)
--- a/
t/t6043-merge-rename-directories.sh
+++ b/
t/t6043-merge-rename-directories.sh
@@
-3583,7
+3583,7
@@
test_expect_success '11d-check: Avoid losing not-uptodate with rename + D/F conf
grep -q stuff z/c &&
test_seq 1 10 >expected &&
echo stuff >>expected &&
grep -q stuff z/c &&
test_seq 1 10 >expected &&
echo stuff >>expected &&
- test_cmp expected z/c
+ test_cmp expected z/c
&&
git ls-files -s >out &&
test_line_count = 4 out &&
git ls-files -s >out &&
test_line_count = 4 out &&