comparison tests/test-bundle.t @ 31746:0fa30fbccc34

hook: provide hook type information to external hook The python hooks have access to the hook type information. There is not reason for external hook to not be aware of it too. For the record my use case is to make sure a hook script is configured for the right type.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 31 Mar 2017 11:08:11 +0200
parents 728d37353e1e
children aff7b32b3c05
comparison
equal deleted inserted replaced
31745:33504b54863e 31746:0fa30fbccc34
230 requesting all changes 230 requesting all changes
231 adding changesets 231 adding changesets
232 adding manifests 232 adding manifests
233 adding file changes 233 adding file changes
234 added 9 changesets with 7 changes to 4 files (+1 heads) 234 added 9 changesets with 7 changes to 4 files (+1 heads)
235 changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_NODE_LAST=aa35859c02ea8bd48da5da68cd2740ac71afcbaf HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=bundle:../full.hg 235 changegroup hook: HG_HOOKTYPE=changegroup HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_NODE_LAST=aa35859c02ea8bd48da5da68cd2740ac71afcbaf HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=bundle:../full.hg
236 (run 'hg heads' to see heads, 'hg merge' to merge) 236 (run 'hg heads' to see heads, 'hg merge' to merge)
237 237
238 Rollback empty 238 Rollback empty
239 239
240 $ hg rollback 240 $ hg rollback
253 requesting all changes 253 requesting all changes
254 adding changesets 254 adding changesets
255 adding manifests 255 adding manifests
256 adding file changes 256 adding file changes
257 added 9 changesets with 7 changes to 4 files (+1 heads) 257 added 9 changesets with 7 changes to 4 files (+1 heads)
258 changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_NODE_LAST=aa35859c02ea8bd48da5da68cd2740ac71afcbaf HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=bundle:empty+full.hg 258 changegroup hook: HG_HOOKTYPE=changegroup HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_NODE_LAST=aa35859c02ea8bd48da5da68cd2740ac71afcbaf HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=bundle:empty+full.hg
259 (run 'hg heads' to see heads, 'hg merge' to merge) 259 (run 'hg heads' to see heads, 'hg merge' to merge)
260 260
261 Cannot produce streaming clone bundles with "hg bundle" 261 Cannot produce streaming clone bundles with "hg bundle"
262 262
263 $ hg -R test bundle -t packed1 packed.hg 263 $ hg -R test bundle -t packed1 packed.hg