Mercurial > hg
comparison tests/test-static-http.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 | 10116463b0b1 |
children | d283517b260b |
comparison
equal
deleted
inserted
replaced
22959:10116463b0b1 | 22960:7c13c9404c2c |
---|---|
66 searching for changes | 66 searching for changes |
67 adding changesets | 67 adding changesets |
68 adding manifests | 68 adding manifests |
69 adding file changes | 69 adding file changes |
70 added 1 changesets with 1 changes to 1 files | 70 added 1 changesets with 1 changes to 1 files |
71 changegroup hook: HG_NODE=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_PHASES_MOVED=1 HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/remote | 71 changegroup hook: HG_NODE=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/remote |
72 (run 'hg update' to get a working copy) | 72 (run 'hg update' to get a working copy) |
73 | 73 |
74 trying to push | 74 trying to push |
75 | 75 |
76 $ hg update | 76 $ hg update |