Show More
@@ -1,3 +1,4 b'' | |||||
|
1 | #testcases b2-pushkey b2-binary | |||
1 | #require serve |
|
2 | #require serve | |
2 |
|
3 | |||
3 | $ cat << EOF >> $HGRCPATH |
|
4 | $ cat << EOF >> $HGRCPATH | |
@@ -103,6 +104,9 b' export bookmark by name' | |||||
103 | delete a remote bookmark |
|
104 | delete a remote bookmark | |
104 |
|
105 | |||
105 | $ hg book -d W |
|
106 | $ hg book -d W | |
|
107 | ||||
|
108 | #if b2-pushkey | |||
|
109 | ||||
106 | $ hg push -B W ../a --config "$TESTHOOK" --debug --config devel.bundle2.debug=yes |
|
110 | $ hg push -B W ../a --config "$TESTHOOK" --debug --config devel.bundle2.debug=yes | |
107 | pushing to ../a |
|
111 | pushing to ../a | |
108 | query 1; heads |
|
112 | query 1; heads | |
@@ -212,6 +216,120 b' delete a remote bookmark' | |||||
212 | listing keys for "phases" |
|
216 | listing keys for "phases" | |
213 | [1] |
|
217 | [1] | |
214 |
|
218 | |||
|
219 | #endif | |||
|
220 | #if b2-binary | |||
|
221 | ||||
|
222 | $ hg push -B W ../a --config "$TESTHOOK" --debug --config devel.bundle2.debug=yes | |||
|
223 | pushing to ../a | |||
|
224 | query 1; heads | |||
|
225 | searching for changes | |||
|
226 | all remote heads known locally | |||
|
227 | listing keys for "phases" | |||
|
228 | checking for updated bookmarks | |||
|
229 | listing keys for "bookmarks" | |||
|
230 | no changes found | |||
|
231 | bundle2-output-bundle: "HG20", 4 parts total | |||
|
232 | bundle2-output: start emission of HG20 stream | |||
|
233 | bundle2-output: bundle parameter: | |||
|
234 | bundle2-output: start of parts | |||
|
235 | bundle2-output: bundle part: "replycaps" | |||
|
236 | bundle2-output-part: "replycaps" 195 bytes payload | |||
|
237 | bundle2-output: part 0: "REPLYCAPS" | |||
|
238 | bundle2-output: header chunk size: 16 | |||
|
239 | bundle2-output: payload chunk size: 195 | |||
|
240 | bundle2-output: closing payload chunk | |||
|
241 | bundle2-output: bundle part: "check:bookmarks" | |||
|
242 | bundle2-output-part: "check:bookmarks" 23 bytes payload | |||
|
243 | bundle2-output: part 1: "CHECK:BOOKMARKS" | |||
|
244 | bundle2-output: header chunk size: 22 | |||
|
245 | bundle2-output: payload chunk size: 23 | |||
|
246 | bundle2-output: closing payload chunk | |||
|
247 | bundle2-output: bundle part: "check:phases" | |||
|
248 | bundle2-output-part: "check:phases" 48 bytes payload | |||
|
249 | bundle2-output: part 2: "CHECK:PHASES" | |||
|
250 | bundle2-output: header chunk size: 19 | |||
|
251 | bundle2-output: payload chunk size: 48 | |||
|
252 | bundle2-output: closing payload chunk | |||
|
253 | bundle2-output: bundle part: "pushkey" | |||
|
254 | bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload | |||
|
255 | bundle2-output: part 3: "PUSHKEY" | |||
|
256 | bundle2-output: header chunk size: 90 | |||
|
257 | bundle2-output: closing payload chunk | |||
|
258 | bundle2-output: end of bundle | |||
|
259 | bundle2-input: start processing of HG20 stream | |||
|
260 | bundle2-input: reading bundle2 stream parameters | |||
|
261 | bundle2-input-bundle: with-transaction | |||
|
262 | bundle2-input: start extraction of bundle2 parts | |||
|
263 | bundle2-input: part header size: 16 | |||
|
264 | bundle2-input: part type: "REPLYCAPS" | |||
|
265 | bundle2-input: part id: "0" | |||
|
266 | bundle2-input: part parameters: 0 | |||
|
267 | bundle2-input: found a handler for part replycaps | |||
|
268 | bundle2-input-part: "replycaps" supported | |||
|
269 | bundle2-input: payload chunk size: 195 | |||
|
270 | bundle2-input: payload chunk size: 0 | |||
|
271 | bundle2-input-part: total payload size 195 | |||
|
272 | bundle2-input: part header size: 22 | |||
|
273 | bundle2-input: part type: "CHECK:BOOKMARKS" | |||
|
274 | bundle2-input: part id: "1" | |||
|
275 | bundle2-input: part parameters: 0 | |||
|
276 | bundle2-input: found a handler for part check:bookmarks | |||
|
277 | bundle2-input-part: "check:bookmarks" supported | |||
|
278 | bundle2-input: payload chunk size: 23 | |||
|
279 | bundle2-input: payload chunk size: 0 | |||
|
280 | bundle2-input-part: total payload size 23 | |||
|
281 | bundle2-input: part header size: 19 | |||
|
282 | bundle2-input: part type: "CHECK:PHASES" | |||
|
283 | bundle2-input: part id: "2" | |||
|
284 | bundle2-input: part parameters: 0 | |||
|
285 | bundle2-input: found a handler for part check:phases | |||
|
286 | bundle2-input-part: "check:phases" supported | |||
|
287 | bundle2-input: payload chunk size: 48 | |||
|
288 | bundle2-input: payload chunk size: 0 | |||
|
289 | bundle2-input-part: total payload size 48 | |||
|
290 | bundle2-input: part header size: 90 | |||
|
291 | bundle2-input: part type: "PUSHKEY" | |||
|
292 | bundle2-input: part id: "3" | |||
|
293 | bundle2-input: part parameters: 4 | |||
|
294 | bundle2-input: found a handler for part pushkey | |||
|
295 | bundle2-input-part: "pushkey" (params: 4 mandatory) supported | |||
|
296 | pushing key for "bookmarks:W" | |||
|
297 | bundle2-input: payload chunk size: 0 | |||
|
298 | bundle2-input: part header size: 0 | |||
|
299 | bundle2-input: end of bundle2 stream | |||
|
300 | bundle2-input-bundle: 3 parts total | |||
|
301 | running hook txnclose-bookmark.test: sh $TESTTMP/hook.sh | |||
|
302 | test-hook-bookmark: W: 0000000000000000000000000000000000000000 -> | |||
|
303 | bundle2-output-bundle: "HG20", 1 parts total | |||
|
304 | bundle2-output: start emission of HG20 stream | |||
|
305 | bundle2-output: bundle parameter: | |||
|
306 | bundle2-output: start of parts | |||
|
307 | bundle2-output: bundle part: "reply:pushkey" | |||
|
308 | bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload | |||
|
309 | bundle2-output: part 0: "REPLY:PUSHKEY" | |||
|
310 | bundle2-output: header chunk size: 43 | |||
|
311 | bundle2-output: closing payload chunk | |||
|
312 | bundle2-output: end of bundle | |||
|
313 | bundle2-input: start processing of HG20 stream | |||
|
314 | bundle2-input: reading bundle2 stream parameters | |||
|
315 | bundle2-input-bundle: no-transaction | |||
|
316 | bundle2-input: start extraction of bundle2 parts | |||
|
317 | bundle2-input: part header size: 43 | |||
|
318 | bundle2-input: part type: "REPLY:PUSHKEY" | |||
|
319 | bundle2-input: part id: "0" | |||
|
320 | bundle2-input: part parameters: 2 | |||
|
321 | bundle2-input: found a handler for part reply:pushkey | |||
|
322 | bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported | |||
|
323 | bundle2-input: payload chunk size: 0 | |||
|
324 | bundle2-input: part header size: 0 | |||
|
325 | bundle2-input: end of bundle2 stream | |||
|
326 | bundle2-input-bundle: 0 parts total | |||
|
327 | deleting remote bookmark W | |||
|
328 | listing keys for "phases" | |||
|
329 | [1] | |||
|
330 | ||||
|
331 | #endif | |||
|
332 | ||||
215 | export the active bookmark |
|
333 | export the active bookmark | |
216 |
|
334 | |||
217 | $ hg bookmark V |
|
335 | $ hg bookmark V | |
@@ -953,6 +1071,8 b' Check hook preventing push (issue4455)' | |||||
953 | Local push |
|
1071 | Local push | |
954 | ---------- |
|
1072 | ---------- | |
955 |
|
1073 | |||
|
1074 | #if b2-pushkey | |||
|
1075 | ||||
956 | $ hg push -B @ local |
|
1076 | $ hg push -B @ local | |
957 | pushing to $TESTTMP/issue4455-dest (glob) |
|
1077 | pushing to $TESTTMP/issue4455-dest (glob) | |
958 | searching for changes |
|
1078 | searching for changes | |
@@ -960,12 +1080,28 b' Local push' | |||||
960 | pushkey-abort: prepushkey hook exited with status 1 |
|
1080 | pushkey-abort: prepushkey hook exited with status 1 | |
961 | abort: exporting bookmark @ failed! |
|
1081 | abort: exporting bookmark @ failed! | |
962 | [255] |
|
1082 | [255] | |
|
1083 | ||||
|
1084 | #endif | |||
|
1085 | #if b2-binary | |||
|
1086 | ||||
|
1087 | $ hg push -B @ local | |||
|
1088 | pushing to $TESTTMP/issue4455-dest (glob) | |||
|
1089 | searching for changes | |||
|
1090 | no changes found | |||
|
1091 | pushkey-abort: prepushkey hook exited with status 1 | |||
|
1092 | abort: exporting bookmark @ failed! | |||
|
1093 | [255] | |||
|
1094 | ||||
|
1095 | #endif | |||
|
1096 | ||||
963 | $ hg -R ../issue4455-dest/ bookmarks |
|
1097 | $ hg -R ../issue4455-dest/ bookmarks | |
964 | no bookmarks set |
|
1098 | no bookmarks set | |
965 |
|
1099 | |||
966 | Using ssh |
|
1100 | Using ssh | |
967 | --------- |
|
1101 | --------- | |
968 |
|
1102 | |||
|
1103 | #if b2-pushkey | |||
|
1104 | ||||
969 | $ hg push -B @ ssh # bundle2+ |
|
1105 | $ hg push -B @ ssh # bundle2+ | |
970 | pushing to ssh://user@dummy/issue4455-dest |
|
1106 | pushing to ssh://user@dummy/issue4455-dest | |
971 | searching for changes |
|
1107 | searching for changes | |
@@ -973,6 +1109,7 b' Using ssh' | |||||
973 | remote: pushkey-abort: prepushkey hook exited with status 1 |
|
1109 | remote: pushkey-abort: prepushkey hook exited with status 1 | |
974 | abort: exporting bookmark @ failed! |
|
1110 | abort: exporting bookmark @ failed! | |
975 | [255] |
|
1111 | [255] | |
|
1112 | ||||
976 | $ hg -R ../issue4455-dest/ bookmarks |
|
1113 | $ hg -R ../issue4455-dest/ bookmarks | |
977 | no bookmarks set |
|
1114 | no bookmarks set | |
978 |
|
1115 | |||
@@ -983,12 +1120,27 b' Using ssh' | |||||
983 | remote: pushkey-abort: prepushkey hook exited with status 1 |
|
1120 | remote: pushkey-abort: prepushkey hook exited with status 1 | |
984 | exporting bookmark @ failed! |
|
1121 | exporting bookmark @ failed! | |
985 | [1] |
|
1122 | [1] | |
|
1123 | ||||
|
1124 | #endif | |||
|
1125 | #if b2-binary | |||
|
1126 | ||||
|
1127 | $ hg push -B @ ssh # bundle2+ | |||
|
1128 | pushing to ssh://user@dummy/issue4455-dest | |||
|
1129 | searching for changes | |||
|
1130 | no changes found | |||
|
1131 | remote: pushkey-abort: prepushkey hook exited with status 1 | |||
|
1132 | abort: exporting bookmark @ failed! | |||
|
1133 | [255] | |||
|
1134 | ||||
|
1135 | #endif | |||
|
1136 | ||||
986 | $ hg -R ../issue4455-dest/ bookmarks |
|
1137 | $ hg -R ../issue4455-dest/ bookmarks | |
987 | no bookmarks set |
|
1138 | no bookmarks set | |
988 |
|
1139 | |||
989 | Using http |
|
1140 | Using http | |
990 | ---------- |
|
1141 | ---------- | |
991 |
|
1142 | |||
|
1143 | #if b2-pushkey | |||
992 | $ hg push -B @ http # bundle2+ |
|
1144 | $ hg push -B @ http # bundle2+ | |
993 | pushing to http://localhost:$HGPORT/ |
|
1145 | pushing to http://localhost:$HGPORT/ | |
994 | searching for changes |
|
1146 | searching for changes | |
@@ -996,6 +1148,7 b' Using http' | |||||
996 | remote: pushkey-abort: prepushkey hook exited with status 1 |
|
1148 | remote: pushkey-abort: prepushkey hook exited with status 1 | |
997 | abort: exporting bookmark @ failed! |
|
1149 | abort: exporting bookmark @ failed! | |
998 | [255] |
|
1150 | [255] | |
|
1151 | ||||
999 | $ hg -R ../issue4455-dest/ bookmarks |
|
1152 | $ hg -R ../issue4455-dest/ bookmarks | |
1000 | no bookmarks set |
|
1153 | no bookmarks set | |
1001 |
|
1154 | |||
@@ -1006,5 +1159,20 b' Using http' | |||||
1006 | remote: pushkey-abort: prepushkey hook exited with status 1 |
|
1159 | remote: pushkey-abort: prepushkey hook exited with status 1 | |
1007 | exporting bookmark @ failed! |
|
1160 | exporting bookmark @ failed! | |
1008 | [1] |
|
1161 | [1] | |
|
1162 | ||||
|
1163 | #endif | |||
|
1164 | ||||
|
1165 | #if b2-binary | |||
|
1166 | ||||
|
1167 | $ hg push -B @ ssh # bundle2+ | |||
|
1168 | pushing to ssh://user@dummy/issue4455-dest | |||
|
1169 | searching for changes | |||
|
1170 | no changes found | |||
|
1171 | remote: pushkey-abort: prepushkey hook exited with status 1 | |||
|
1172 | abort: exporting bookmark @ failed! | |||
|
1173 | [255] | |||
|
1174 | ||||
|
1175 | #endif | |||
|
1176 | ||||
1009 | $ hg -R ../issue4455-dest/ bookmarks |
|
1177 | $ hg -R ../issue4455-dest/ bookmarks | |
1010 | no bookmarks set |
|
1178 | no bookmarks set |
General Comments 0
You need to be logged in to leave comments.
Login now