t9814: guarantee only one source exists in git-p4 copy tests
authorVitor Antunes <vitor.hda@gmail.com>
Sun, 5 Apr 2015 23:08:35 +0000 (00:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Apr 2015 03:25:17 +0000 (20:25 -0700)
By using a tree with multiple identical files and allowing copy detection to
choose any one of them, the check in the test is unnecessarily complex. We can
simplify by:

* Modify source file (file2) before copying the file.
* Check that only file2 is the source in the output of "p4 filelog".
* Remove all "case" statements and replace them with simple tests to check
that source is "file2".

Signed-off-by: Vitor Antunes <vitor.hda@gmail.com>
Acked-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found