Mercurial > hg
comparison tests/test-bundle2-multiple-changegroups.t @ 42897:d7304434390f
changegroup: move message about added changes to transaction summary
Before that, applying multiple changegroups in the same transaction issued the
message multiple time. This result in a confusing output:
adding changesets
adding manifests
adding file changes
added 32768 changesets with 60829 changes to 2668 files
adding changesets
adding manifests
adding file changes
added 8192 changesets with 16885 changes to 1553 files
adding changesets
adding manifests
adding file changes
added 1020 changesets with 1799 changes to 536 files
adding changesets
adding manifests
...
Instead, we now only issue the message once at the end of the transaction,
summing up all added changesets, changes and files. The line is identical, but
happens sightly later in the output.
There are other suboptimal behavior around issue multiple changegroup (eg:
progress bar). We'll cover them later.
This impact of lot of test as one would expect, but a two pass check show they
are just the order change we expected.
To deal with "under the hood" bundle application by internal code, we had to
take a slightly hacky move. We could clean that up with a more official way to
enter "under the hood" section, however I want to keep this series simple to get
it landed. This kind of change have a very high bit rot rate since it impact a
lot of test output.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 08 Sep 2019 09:42:53 +0200 |
parents | 94faa2e84094 |
children | ed84a4d48910 |
comparison
equal
deleted
inserted
replaced
42896:7e19b640c53e | 42897:d7304434390f |
---|---|
78 searching for changes | 78 searching for changes |
79 remote: changegroup1 | 79 remote: changegroup1 |
80 adding changesets | 80 adding changesets |
81 adding manifests | 81 adding manifests |
82 adding file changes | 82 adding file changes |
83 added 1 changesets with 1 changes to 1 files | |
84 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup | 83 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup |
85 HG_HOOKTYPE=pretxnchangegroup | 84 HG_HOOKTYPE=pretxnchangegroup |
86 HG_NODE=27547f69f25460a52fff66ad004e58da7ad3fb56 | 85 HG_NODE=27547f69f25460a52fff66ad004e58da7ad3fb56 |
87 HG_NODE_LAST=27547f69f25460a52fff66ad004e58da7ad3fb56 | 86 HG_NODE_LAST=27547f69f25460a52fff66ad004e58da7ad3fb56 |
88 HG_PENDING=$TESTTMP/clone | 87 HG_PENDING=$TESTTMP/clone |
94 | 93 |
95 remote: changegroup2 | 94 remote: changegroup2 |
96 adding changesets | 95 adding changesets |
97 adding manifests | 96 adding manifests |
98 adding file changes | 97 adding file changes |
99 added 1 changesets with 1 changes to 1 files | |
100 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup | 98 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup |
101 HG_HOOKTYPE=pretxnchangegroup | 99 HG_HOOKTYPE=pretxnchangegroup |
102 HG_NODE=f838bfaca5c7226600ebcfd84f3c3c13a28d3757 | 100 HG_NODE=f838bfaca5c7226600ebcfd84f3c3c13a28d3757 |
103 HG_NODE_LAST=f838bfaca5c7226600ebcfd84f3c3c13a28d3757 | 101 HG_NODE_LAST=f838bfaca5c7226600ebcfd84f3c3c13a28d3757 |
104 HG_PENDING=$TESTTMP/clone | 102 HG_PENDING=$TESTTMP/clone |
107 HG_TXNID=TXN:$ID$ | 105 HG_TXNID=TXN:$ID$ |
108 HG_TXNNAME=pull | 106 HG_TXNNAME=pull |
109 file:/*/$TESTTMP/repo (glob) | 107 file:/*/$TESTTMP/repo (glob) |
110 HG_URL=file:$TESTTMP/repo | 108 HG_URL=file:$TESTTMP/repo |
111 | 109 |
110 added 2 changesets with 2 changes to 2 files | |
112 new changesets 27547f69f254:f838bfaca5c7 | 111 new changesets 27547f69f254:f838bfaca5c7 |
113 changegroup hook: HG_HOOKNAME=changegroup | 112 changegroup hook: HG_HOOKNAME=changegroup |
114 HG_HOOKTYPE=changegroup | 113 HG_HOOKTYPE=changegroup |
115 HG_NODE=27547f69f25460a52fff66ad004e58da7ad3fb56 | 114 HG_NODE=27547f69f25460a52fff66ad004e58da7ad3fb56 |
116 HG_NODE_LAST=27547f69f25460a52fff66ad004e58da7ad3fb56 | 115 HG_NODE_LAST=27547f69f25460a52fff66ad004e58da7ad3fb56 |
206 searching for changes | 205 searching for changes |
207 remote: changegroup1 | 206 remote: changegroup1 |
208 adding changesets | 207 adding changesets |
209 adding manifests | 208 adding manifests |
210 adding file changes | 209 adding file changes |
211 added 2 changesets with 2 changes to 2 files (+1 heads) | |
212 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup | 210 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup |
213 HG_HOOKTYPE=pretxnchangegroup | 211 HG_HOOKTYPE=pretxnchangegroup |
214 HG_NODE=b3325c91a4d916bcc4cdc83ea3fe4ece46a42f6e | 212 HG_NODE=b3325c91a4d916bcc4cdc83ea3fe4ece46a42f6e |
215 HG_NODE_LAST=8a5212ebc8527f9fb821601504794e3eb11a1ed3 | 213 HG_NODE_LAST=8a5212ebc8527f9fb821601504794e3eb11a1ed3 |
216 HG_PENDING=$TESTTMP/clone | 214 HG_PENDING=$TESTTMP/clone |
222 | 220 |
223 remote: changegroup2 | 221 remote: changegroup2 |
224 adding changesets | 222 adding changesets |
225 adding manifests | 223 adding manifests |
226 adding file changes | 224 adding file changes |
227 added 3 changesets with 3 changes to 3 files (+1 heads) | |
228 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup | 225 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup |
229 HG_HOOKTYPE=pretxnchangegroup | 226 HG_HOOKTYPE=pretxnchangegroup |
230 HG_NODE=7f219660301fe4c8a116f714df5e769695cc2b46 | 227 HG_NODE=7f219660301fe4c8a116f714df5e769695cc2b46 |
231 HG_NODE_LAST=5cd59d311f6508b8e0ed28a266756c859419c9f1 | 228 HG_NODE_LAST=5cd59d311f6508b8e0ed28a266756c859419c9f1 |
232 HG_PENDING=$TESTTMP/clone | 229 HG_PENDING=$TESTTMP/clone |
235 HG_TXNID=TXN:$ID$ | 232 HG_TXNID=TXN:$ID$ |
236 HG_TXNNAME=pull | 233 HG_TXNNAME=pull |
237 file:/*/$TESTTMP/repo (glob) | 234 file:/*/$TESTTMP/repo (glob) |
238 HG_URL=file:$TESTTMP/repo | 235 HG_URL=file:$TESTTMP/repo |
239 | 236 |
237 added 5 changesets with 5 changes to 5 files (+2 heads) | |
240 new changesets b3325c91a4d9:5cd59d311f65 | 238 new changesets b3325c91a4d9:5cd59d311f65 |
241 changegroup hook: HG_HOOKNAME=changegroup | 239 changegroup hook: HG_HOOKNAME=changegroup |
242 HG_HOOKTYPE=changegroup | 240 HG_HOOKTYPE=changegroup |
243 HG_NODE=b3325c91a4d916bcc4cdc83ea3fe4ece46a42f6e | 241 HG_NODE=b3325c91a4d916bcc4cdc83ea3fe4ece46a42f6e |
244 HG_NODE_LAST=8a5212ebc8527f9fb821601504794e3eb11a1ed3 | 242 HG_NODE_LAST=8a5212ebc8527f9fb821601504794e3eb11a1ed3 |
363 searching for changes | 361 searching for changes |
364 remote: changegroup1 | 362 remote: changegroup1 |
365 adding changesets | 363 adding changesets |
366 adding manifests | 364 adding manifests |
367 adding file changes | 365 adding file changes |
368 added 1 changesets with 0 changes to 0 files (-1 heads) | |
369 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup | 366 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup |
370 HG_HOOKTYPE=pretxnchangegroup | 367 HG_HOOKTYPE=pretxnchangegroup |
371 HG_NODE=71bd7b46de72e69a32455bf88d04757d542e6cf4 | 368 HG_NODE=71bd7b46de72e69a32455bf88d04757d542e6cf4 |
372 HG_NODE_LAST=71bd7b46de72e69a32455bf88d04757d542e6cf4 | 369 HG_NODE_LAST=71bd7b46de72e69a32455bf88d04757d542e6cf4 |
373 HG_PENDING=$TESTTMP/clone | 370 HG_PENDING=$TESTTMP/clone |
379 | 376 |
380 remote: changegroup2 | 377 remote: changegroup2 |
381 adding changesets | 378 adding changesets |
382 adding manifests | 379 adding manifests |
383 adding file changes | 380 adding file changes |
384 added 1 changesets with 1 changes to 1 files | |
385 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup | 381 pretxnchangegroup hook: HG_HOOKNAME=pretxnchangegroup |
386 HG_HOOKTYPE=pretxnchangegroup | 382 HG_HOOKTYPE=pretxnchangegroup |
387 HG_NODE=9d18e5bd9ab09337802595d49f1dad0c98df4d84 | 383 HG_NODE=9d18e5bd9ab09337802595d49f1dad0c98df4d84 |
388 HG_NODE_LAST=9d18e5bd9ab09337802595d49f1dad0c98df4d84 | 384 HG_NODE_LAST=9d18e5bd9ab09337802595d49f1dad0c98df4d84 |
389 HG_PENDING=$TESTTMP/clone | 385 HG_PENDING=$TESTTMP/clone |
392 HG_TXNID=TXN:$ID$ | 388 HG_TXNID=TXN:$ID$ |
393 HG_TXNNAME=pull | 389 HG_TXNNAME=pull |
394 file:/*/$TESTTMP/repo (glob) | 390 file:/*/$TESTTMP/repo (glob) |
395 HG_URL=file:$TESTTMP/repo | 391 HG_URL=file:$TESTTMP/repo |
396 | 392 |
393 added 2 changesets with 1 changes to 1 files (-1 heads) | |
397 new changesets 71bd7b46de72:9d18e5bd9ab0 | 394 new changesets 71bd7b46de72:9d18e5bd9ab0 |
398 changegroup hook: HG_HOOKNAME=changegroup | 395 changegroup hook: HG_HOOKNAME=changegroup |
399 HG_HOOKTYPE=changegroup | 396 HG_HOOKTYPE=changegroup |
400 HG_NODE=71bd7b46de72e69a32455bf88d04757d542e6cf4 | 397 HG_NODE=71bd7b46de72e69a32455bf88d04757d542e6cf4 |
401 HG_NODE_LAST=71bd7b46de72e69a32455bf88d04757d542e6cf4 | 398 HG_NODE_LAST=71bd7b46de72e69a32455bf88d04757d542e6cf4 |