Thread (18 messages) flat view 18 messages, 3 authors, 2016-06-15
DORMANTno replies

[PATCH 08/11] git-p4: test --max-changes

From: Pete Wyckoff <hidden>
Date: 2016-06-15 22:52:40
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Pete Wyckoff <redacted>
---
 t/t9806-options.sh |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/t/t9806-options.sh b/t/t9806-options.sh
index 6770326..cc0fd26 100755
--- a/t/t9806-options.sh
+++ b/t/t9806-options.sh
@@ -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
 '
-- 
1.7.8.258.g45cc3c
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help