comparison tests/test-bundle.t @ 27739:d6d3cf5fda6f

hooks: add HG_NODE_LAST to txnclose and changegroup hook environments Sometimes a txnclose or changegroup hook wants to iterate through all the changesets in transaction: in that situation usually the revset `$HG_NODE:` is used to select the revisions. Unfortunately this revset sometimes may contain too many changesets because we don't have the write lock while the hook runs newer changes may be added to repository in the meantime. That's why there is a need for extra variable carrying the information about the last change in the transaction.
author Mateusz Kwapich <mitrandir@fb.com>
date Tue, 05 Jan 2016 17:37:59 -0800
parents d9bfe6289acf
children 2370c66110cb
comparison
equal deleted inserted replaced
27738:a0e783d26e81 27739:d6d3cf5fda6f
228 requesting all changes 228 requesting all changes
229 adding changesets 229 adding changesets
230 adding manifests 230 adding manifests
231 adding file changes 231 adding file changes
232 added 9 changesets with 7 changes to 4 files (+1 heads) 232 added 9 changesets with 7 changes to 4 files (+1 heads)
233 changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=bundle:../full.hg (glob) 233 changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_NODE_LAST=aa35859c02ea8bd48da5da68cd2740ac71afcbaf HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=bundle:../full.hg (glob)
234 (run 'hg heads' to see heads, 'hg merge' to merge) 234 (run 'hg heads' to see heads, 'hg merge' to merge)
235 235
236 Rollback empty 236 Rollback empty
237 237
238 $ hg rollback 238 $ hg rollback
251 requesting all changes 251 requesting all changes
252 adding changesets 252 adding changesets
253 adding manifests 253 adding manifests
254 adding file changes 254 adding file changes
255 added 9 changesets with 7 changes to 4 files (+1 heads) 255 added 9 changesets with 7 changes to 4 files (+1 heads)
256 changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=bundle:empty+full.hg (glob) 256 changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_NODE_LAST=aa35859c02ea8bd48da5da68cd2740ac71afcbaf HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=bundle:empty+full.hg (glob)
257 (run 'hg heads' to see heads, 'hg merge' to merge) 257 (run 'hg heads' to see heads, 'hg merge' to merge)
258 258
259 Cannot produce streaming clone bundles with "hg bundle" 259 Cannot produce streaming clone bundles with "hg bundle"
260 260
261 $ hg -R test bundle -t packed1 packed.hg 261 $ hg -R test bundle -t packed1 packed.hg