comparison tests/test-bundle.t @ 22960:7c13c9404c2c

changegroup: use a copy of hookargs when invoking the changegroup hook addchangegroup creates a runhook function that is used to invoke the changegroup and incoming hooks, but at the time the function is called, the contents of hookargs associated with the transaction may have been modified externally. For instance, bundle2 code affects it with obsolescence markers and bookmarks info. It also creates problems when a single transaction is used with multiple changegroups added (as per an upcoming change), whereby the contents of hookargs are that of after adding a latter changegroup when invoking the hook for the first changegroup.
author Mike Hommey <mh@glandium.org>
date Thu, 16 Oct 2014 15:54:53 +0900
parents e803186296ab
children e7fcf58acd71
comparison
equal deleted inserted replaced
22959:10116463b0b1 22960:7c13c9404c2c
222 requesting all changes 222 requesting all changes
223 adding changesets 223 adding changesets
224 adding manifests 224 adding manifests
225 adding file changes 225 adding file changes
226 added 9 changesets with 7 changes to 4 files (+1 heads) 226 added 9 changesets with 7 changes to 4 files (+1 heads)
227 changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_PHASES_MOVED=1 HG_SOURCE=pull HG_URL=bundle:../full.hg 227 changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_SOURCE=pull HG_URL=bundle:../full.hg
228 (run 'hg heads' to see heads, 'hg merge' to merge) 228 (run 'hg heads' to see heads, 'hg merge' to merge)
229 229
230 Rollback empty 230 Rollback empty
231 231
232 $ hg rollback 232 $ hg rollback
245 requesting all changes 245 requesting all changes
246 adding changesets 246 adding changesets
247 adding manifests 247 adding manifests
248 adding file changes 248 adding file changes
249 added 9 changesets with 7 changes to 4 files (+1 heads) 249 added 9 changesets with 7 changes to 4 files (+1 heads)
250 changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_PHASES_MOVED=1 HG_SOURCE=pull HG_URL=bundle:empty+full.hg 250 changegroup hook: HG_NODE=f9ee2f85a263049e9ae6d37a0e67e96194ffb735 HG_SOURCE=pull HG_URL=bundle:empty+full.hg
251 (run 'hg heads' to see heads, 'hg merge' to merge) 251 (run 'hg heads' to see heads, 'hg merge' to merge)
252 252
253 Create partial clones 253 Create partial clones
254 254
255 $ rm -r empty 255 $ rm -r empty