git-p4: test --max-changes
Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Pete Wyckoff committed
Dec 24, 2011 at 21:07 UTC
7fbe1ce9e2050f1d3f64868abcbc0d0794af3d13
1 file changed
+10
t/t9806-git-p4-options.sh
+10
@@ -83,6 +83,16 @@ test_expect_success 'clone/sync --import-local' '
83
)
84
'
85
86
+test_expect_success 'clone --max-changes' '
87
+ "$GITP4" clone --dest="$git" --max-changes 2 //depot@all &&
88
+ test_when_finished cleanup_git &&
89
+ (
90
+ cd "$git" &&
91
+ git log --oneline refs/heads/master >lines &&
92
+ test_line_count = 2 lines
93
+ )
94
+'
95
+
96
test_expect_success 'kill p4d' '
97
kill_p4d
98
'