This patch set includes two small fixes to the rename test case. The fix to
support dash should be trivial, but in the fix to the copy detection test case
it isn't obvious to me what changed in diff-tree to result in a different file
being detected as the origin of a copy.
Vitor Antunes (2):
git-p4: Make rename test case runnable under dash
git-p4: Fix copy detection test
t/t9814-git-p4-rename.sh | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
--
1.7.10.4
File file11 is copied from file2 and diff-tree correctly reports this file as
its the source, but the test expression was checking for file10 instead (which
was a file that also originated from file2). It is possible that the diff-tree
algorithm was updated in recent versions, which resulted in this mismatch in
behavior.
Signed-off-by: Vitor Antunes <redacted>
---
t/t9814-git-p4-rename.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -156,14 +156,14 @@ test_expect_success 'detect copies' 'gitdiff-tree-r-CHEAD&&gitp4submit&&p4filelog//depot/file10&&-p4filelog//depot/file10|grep-q"branch from //depot/file"&&+p4filelog//depot/file10|grep-q"branch from //depot/file2"&&cpfile2file11&&gitaddfile11&&gitcommit-a-m"Copy file2 to file11"&&gitdiff-tree-r-C--find-copies-harderHEAD&&src=$(gitdiff-tree-r-C--find-copies-harderHEAD|sed1d|cut-f2)&&-test"$src"=file10&&+test"$src"=file2&&gitconfiggit-p4.detectCopiesHardertrue&&gitp4submit&&p4filelog//depot/file11&&