Mercurial > hg
comparison tests/test-https.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 | dfb21c34e07d |
comparison
equal
deleted
inserted
replaced
27738:a0e783d26e81 | 27739:d6d3cf5fda6f |
---|---|
208 searching for changes | 208 searching for changes |
209 adding changesets | 209 adding changesets |
210 adding manifests | 210 adding manifests |
211 adding file changes | 211 adding file changes |
212 added 1 changesets with 1 changes to 1 files | 212 added 1 changesets with 1 changes to 1 files |
213 changegroup hook: HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=https://localhost:$HGPORT/ (glob) | 213 changegroup hook: HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=https://localhost:$HGPORT/ (glob) |
214 (run 'hg update' to get a working copy) | 214 (run 'hg update' to get a working copy) |
215 $ cd .. | 215 $ cd .. |
216 | 216 |
217 cacert configured in local repo | 217 cacert configured in local repo |
218 | 218 |