comparison tests/test-push-http.t @ 41896:94faa2e84094

transaction: include txnname in the hookargs dictionary There is no reason to not include the txnname alongside the txnid in all case. The python hooks already have them, so aligning the the shell hooks seems it could be useful in the future. (I don't have a strong opinion about this, we can also decide to never align the python and shell hooks and this and I'll drop this patch).
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 09 Feb 2019 23:01:30 +0100
parents 7839249e7834
children d7304434390f
comparison
equal deleted inserted replaced
41895:c1017bceb6ec 41896:94faa2e84094
99 remote: HG_HOOKTYPE=changegroup 99 remote: HG_HOOKTYPE=changegroup
100 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 100 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872
101 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 101 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
102 remote: HG_SOURCE=serve 102 remote: HG_SOURCE=serve
103 remote: HG_TXNID=TXN:$ID$ 103 remote: HG_TXNID=TXN:$ID$
104 remote: HG_TXNNAME=serve
105 remote: remote:http:$LOCALIP: (glob)
104 remote: HG_URL=remote:http:$LOCALIP: (glob) 106 remote: HG_URL=remote:http:$LOCALIP: (glob)
105 remote: 107 remote:
106 % serve errors 108 % serve errors
107 $ hg rollback 109 $ hg rollback
108 repository tip rolled back to revision 0 (undo serve) 110 repository tip rolled back to revision 0 (undo serve)
126 remote: HG_HOOKTYPE=changegroup 128 remote: HG_HOOKTYPE=changegroup
127 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 129 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872
128 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 130 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
129 remote: HG_SOURCE=serve 131 remote: HG_SOURCE=serve
130 remote: HG_TXNID=TXN:$ID$ 132 remote: HG_TXNID=TXN:$ID$
133 remote: HG_TXNNAME=serve
134 remote: remote:http:$LOCALIP: (glob)
131 remote: HG_URL=remote:http:$LOCALIP: (glob) 135 remote: HG_URL=remote:http:$LOCALIP: (glob)
132 remote: 136 remote:
133 % serve errors 137 % serve errors
134 $ hg rollback 138 $ hg rollback
135 repository tip rolled back to revision 0 (undo serve) 139 repository tip rolled back to revision 0 (undo serve)
157 remote: HG_HOOKTYPE=changegroup 161 remote: HG_HOOKTYPE=changegroup
158 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 162 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872
159 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 163 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
160 remote: HG_SOURCE=serve 164 remote: HG_SOURCE=serve
161 remote: HG_TXNID=TXN:$ID$ 165 remote: HG_TXNID=TXN:$ID$
166 remote: HG_TXNNAME=serve
162 remote: HG_URL=remote:http:$LOCALIP: (glob) 167 remote: HG_URL=remote:http:$LOCALIP: (glob)
163 remote: 168 remote:
164 % serve errors 169 % serve errors
165 $ hg rollback 170 $ hg rollback
166 repository tip rolled back to revision 0 (undo serve) 171 repository tip rolled back to revision 0 (undo serve)
185 remote: HG_HOOKTYPE=changegroup 190 remote: HG_HOOKTYPE=changegroup
186 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 191 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872
187 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 192 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
188 remote: HG_SOURCE=serve 193 remote: HG_SOURCE=serve
189 remote: HG_TXNID=TXN:$ID$ 194 remote: HG_TXNID=TXN:$ID$
195 remote: HG_TXNNAME=serve
196 remote: remote:http:$LOCALIP: (glob) (no-bundle2 !)
190 remote: HG_URL=remote:http:$LOCALIP: (glob) 197 remote: HG_URL=remote:http:$LOCALIP: (glob)
191 remote: 198 remote:
192 % serve errors 199 % serve errors
193 $ hg rollback 200 $ hg rollback
194 repository tip rolled back to revision 0 (undo serve) 201 repository tip rolled back to revision 0 (undo serve)
212 remote: HG_HOOKTYPE=changegroup 219 remote: HG_HOOKTYPE=changegroup
213 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 220 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872
214 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 221 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
215 remote: HG_SOURCE=serve 222 remote: HG_SOURCE=serve
216 remote: HG_TXNID=TXN:$ID$ 223 remote: HG_TXNID=TXN:$ID$
224 remote: HG_TXNNAME=serve
225 remote: remote:http:$LOCALIP: (glob) (no-bundle2 !)
217 remote: HG_URL=remote:http:$LOCALIP: (glob) 226 remote: HG_URL=remote:http:$LOCALIP: (glob)
218 remote: 227 remote:
219 % serve errors 228 % serve errors
220 $ hg rollback 229 $ hg rollback
221 repository tip rolled back to revision 0 (undo serve) 230 repository tip rolled back to revision 0 (undo serve)
251 remote: HG_HOOKTYPE=changegroup 260 remote: HG_HOOKTYPE=changegroup
252 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 261 remote: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872
253 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 262 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
254 remote: HG_SOURCE=serve 263 remote: HG_SOURCE=serve
255 remote: HG_TXNID=TXN:$ID$ 264 remote: HG_TXNID=TXN:$ID$
265 remote: HG_TXNNAME=serve
266 remote: remote:http:$LOCALIP: (glob) (no-bundle2 !)
256 remote: HG_URL=remote:http:$LOCALIP: (glob) 267 remote: HG_URL=remote:http:$LOCALIP: (glob)
257 remote: 268 remote:
258 % serve errors 269 % serve errors
259 $ hg rollback 270 $ hg rollback
260 repository tip rolled back to revision 0 (undo serve) 271 repository tip rolled back to revision 0 (undo serve)
310 remote: HG_OLD=1 321 remote: HG_OLD=1
311 remote: HG_PENDING=$TESTTMP/test 322 remote: HG_PENDING=$TESTTMP/test
312 remote: HG_PHASES_MOVED=1 323 remote: HG_PHASES_MOVED=1
313 remote: HG_SOURCE=serve 324 remote: HG_SOURCE=serve
314 remote: HG_TXNID=TXN:$ID$ 325 remote: HG_TXNID=TXN:$ID$
326 remote: HG_TXNNAME=serve
315 remote: HG_URL=remote:http:$LOCALIP: (glob) 327 remote: HG_URL=remote:http:$LOCALIP: (glob)
316 remote: 328 remote:
317 remote: pushkey-abort: prepushkey hook exited with status 1 329 remote: pushkey-abort: prepushkey hook exited with status 1
318 remote: transaction abort! 330 remote: transaction abort!
319 remote: rollback completed 331 remote: rollback completed
351 remote: HG_OLD=1 363 remote: HG_OLD=1
352 remote: HG_PENDING=$TESTTMP/test 364 remote: HG_PENDING=$TESTTMP/test
353 remote: HG_PHASES_MOVED=1 365 remote: HG_PHASES_MOVED=1
354 remote: HG_SOURCE=serve 366 remote: HG_SOURCE=serve
355 remote: HG_TXNID=TXN:$ID$ 367 remote: HG_TXNID=TXN:$ID$
368 remote: HG_TXNNAME=serve
356 remote: HG_URL=remote:http:$LOCALIP: (glob) 369 remote: HG_URL=remote:http:$LOCALIP: (glob)
357 remote: 370 remote:
358 % serve errors 371 % serve errors
359 #endif 372 #endif
360 373
409 remote: HG_OLD=1 422 remote: HG_OLD=1
410 remote: HG_PENDING=$TESTTMP/test 423 remote: HG_PENDING=$TESTTMP/test
411 remote: HG_PHASES_MOVED=1 424 remote: HG_PHASES_MOVED=1
412 remote: HG_SOURCE=serve 425 remote: HG_SOURCE=serve
413 remote: HG_TXNID=TXN:$ID$ 426 remote: HG_TXNID=TXN:$ID$
427 remote: HG_TXNNAME=serve
414 remote: HG_URL=remote:http:$LOCALIP: (glob) 428 remote: HG_URL=remote:http:$LOCALIP: (glob)
415 remote: 429 remote:
416 remote: pushkey-abort: prepushkey hook exited with status 1 430 remote: pushkey-abort: prepushkey hook exited with status 1
417 remote: transaction abort! 431 remote: transaction abort!
418 remote: rollback completed 432 remote: rollback completed
463 remote: HG_OLD=1 477 remote: HG_OLD=1
464 remote: HG_PENDING=$TESTTMP/test 478 remote: HG_PENDING=$TESTTMP/test
465 remote: HG_PHASES_MOVED=1 479 remote: HG_PHASES_MOVED=1
466 remote: HG_SOURCE=serve 480 remote: HG_SOURCE=serve
467 remote: HG_TXNID=TXN:$ID$ 481 remote: HG_TXNID=TXN:$ID$
482 remote: HG_TXNNAME=serve
468 remote: HG_URL=remote:http:$LOCALIP: (glob) 483 remote: HG_URL=remote:http:$LOCALIP: (glob)
469 remote: 484 remote:
470 % serve errors 485 % serve errors
471 #endif 486 #endif
472 487