Code

git-p4: test --max-changes
authorPete Wyckoff <pw@padd.com>
Sun, 25 Dec 2011 02:07:37 +0000 (21:07 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Dec 2011 18:19:30 +0000 (10:19 -0800)
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9806-git-p4-options.sh

index 67703267be944c7a89d1a90e600dfdf4b25e5d2c..cc0fd26d367a74e26fb52ba7a3a2357c3f81fc3a 100755 (executable)
@@ -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
 '