git-p4: reduce number of server queries for fetches

When fetching changes from a depot using a full client spec, there
is no need to perform as many queries as there are top-level paths
in the client spec.  Instead we query all changes in chronological
order, also getting rid of the need to sort the results and remove
duplicates.

Signed-off-by: Sam Hocevar <sam@hocevar.net>
Signed-off-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Sam Hocevar
2015-12-19 09:39:40 +00:00
committed by Junio C Hamano
parent cbc692425c
commit 1f90a64891
2 changed files with 22 additions and 24 deletions

View File

@ -128,7 +128,7 @@ test_expect_success 'Create a repo with multiple depot paths' '
done
'
test_expect_failure 'Clone repo with multiple depot paths' '
test_expect_success 'Clone repo with multiple depot paths' '
(
cd "$git" &&
git p4 clone --changes-block-size=4 //depot/pathA@all //depot/pathB@all \