Mercurial > hg
comparison tests/test-http-bundle1.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 | d19787db6fe0 |
children | e01bd7385f4f |
comparison
equal
deleted
inserted
replaced
27738:a0e783d26e81 | 27739:d6d3cf5fda6f |
---|---|
134 searching for changes | 134 searching for changes |
135 adding changesets | 135 adding changesets |
136 adding manifests | 136 adding manifests |
137 adding file changes | 137 adding file changes |
138 added 1 changesets with 1 changes to 1 files | 138 added 1 changesets with 1 changes to 1 files |
139 changegroup hook: HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=http://localhost:$HGPORT1/ (glob) | 139 changegroup hook: HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=http://localhost:$HGPORT1/ (glob) |
140 (run 'hg update' to get a working copy) | 140 (run 'hg update' to get a working copy) |
141 $ cd .. | 141 $ cd .. |
142 | 142 |
143 clone from invalid URL | 143 clone from invalid URL |
144 | 144 |