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:

committed by
Junio C Hamano

parent
cbc692425c
commit
1f90a64891
@ -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 \
|
||||
|
Reference in New Issue
Block a user