File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ p4_add_file() {
84
84
(cd " $cli " &&
85
85
> $1 &&
86
86
p4 add $1 &&
87
- p4 submit -d " Added a file" $1
87
+ p4 submit -d " Added file $1 " $1
88
88
)
89
89
}
90
90
@@ -112,6 +112,32 @@ test_expect_success 'Syncing files' '
112
112
)
113
113
'
114
114
115
+ # Handling of multiple depot paths:
116
+ # git p4 clone //depot/pathA //depot/pathB
117
+ #
118
+ test_expect_success ' Create a repo with multiple depot paths' '
119
+ client_view "//depot/pathA/... //client/pathA/..." \
120
+ "//depot/pathB/... //client/pathB/..." &&
121
+ mkdir -p "$cli/pathA" "$cli/pathB" &&
122
+ for p in pathA pathB
123
+ do
124
+ for i in $(test_seq 1 10)
125
+ do
126
+ p4_add_file "$p/file$p$i"
127
+ done
128
+ done
129
+ '
130
+
131
+ test_expect_failure ' Clone repo with multiple depot paths' '
132
+ (
133
+ cd "$git" &&
134
+ git p4 clone --changes-block-size=4 //depot/pathA@all //depot/pathB@all \
135
+ --destination=dest &&
136
+ ls -1 dest >log &&
137
+ test_line_count = 20 log
138
+ )
139
+ '
140
+
115
141
test_expect_success ' kill p4d' '
116
142
kill_p4d
117
143
'
You can’t perform that action at this time.
0 commit comments