Skip to content
Snippets Groups Projects
Commit 4f2222f8 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

test-bundle2: test that we got appropriate hook called with appropriate data

We can notice that this transaction wide hook is only happening during push and
it is missing changegroup-related information. We'll want to fix this but this
is not what this patch is about.
parent 92bf9abc
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
> allow_push = * > allow_push = *
> [phases] > [phases]
> publish=False > publish=False
> [hooks]
> b2x-transactionclose = sh -c "HG_LOCAL= HG_NODE= HG_TAG= python \"$TESTDIR/printenv.py\" b2x-transactionclose"
> EOF > EOF
The extension requires a repo (currently unused) The extension requires a repo (currently unused)
...@@ -152,6 +154,7 @@ ...@@ -152,6 +154,7 @@
$ hg -R main push other --rev eea13746799a --bookmark book_eea1 $ hg -R main push other --rev eea13746799a --bookmark book_eea1
pushing to other pushing to other
searching for changes searching for changes
b2x-transactionclose hook: HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=1 HG_SOURCE=push HG_URL=push
remote: adding changesets remote: adding changesets
remote: adding manifests remote: adding manifests
remote: adding file changes remote: adding file changes
...@@ -224,6 +227,7 @@ ...@@ -224,6 +227,7 @@
remote: added 1 changesets with 1 changes to 1 files remote: added 1 changesets with 1 changes to 1 files
remote: 1 new obsolescence markers remote: 1 new obsolescence markers
updating bookmark book_5fdd updating bookmark book_5fdd
remote: b2x-transactionclose hook: HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=1 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1
$ hg -R other log -G $ hg -R other log -G
o 6:5fddd98957c8 draft Nicolas Dumazet <nicdumz.commits@gmail.com> book_5fdd C o 6:5fddd98957c8 draft Nicolas Dumazet <nicdumz.commits@gmail.com> book_5fdd C
| |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment