git-p4: test --max-changes

Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Pete Wyckoff 2011-12-24 21:07:37 -05:00 committed by Junio C Hamano
parent 5a92a6ce90
commit 7fbe1ce9e2

View file

@ -83,6 +83,16 @@ test_expect_success 'clone/sync --import-local' '
)
'
test_expect_success 'clone --max-changes' '
"$GITP4" clone --dest="$git" --max-changes 2 //depot@all &&
test_when_finished cleanup_git &&
(
cd "$git" &&
git log --oneline refs/heads/master >lines &&
test_line_count = 2 lines
)
'
test_expect_success 'kill p4d' '
kill_p4d
'