##// END OF EJS Templates
test-bundle2: also test the argument of the changegroup hook...
Pierre-Yves David -
r22939:e4827754 default
parent child Browse files
Show More
@@ -26,6 +26,7 b' enable obsolescence'
26 26 > [phases]
27 27 > publish=False
28 28 > [hooks]
29 > changegroup = sh -c "HG_LOCAL= HG_NODE= HG_TAG= python \"$TESTDIR/printenv.py\" changegroup"
29 30 > b2x-transactionclose = sh -c "HG_LOCAL= HG_NODE= HG_TAG= python \"$TESTDIR/printenv.py\" b2x-transactionclose"
30 31 > EOF
31 32
@@ -42,6 +43,7 b' The extension requires a repo (currently'
42 43 adding manifests
43 44 adding file changes
44 45 added 8 changesets with 7 changes to 7 files (+3 heads)
46 changegroup hook: HG_SOURCE=unbundle HG_URL=bundle:*/tests/bundles/rebase.hg (glob)
45 47 (run 'hg heads' to see heads, 'hg merge' to merge)
46 48
47 49 $ cd ..
@@ -63,6 +65,7 b' clone --pull'
63 65 adding file changes
64 66 added 2 changesets with 2 changes to 2 files
65 67 1 new obsolescence markers
68 changegroup hook: HG_NEW_OBSMARKERS=1 HG_SOURCE=bundle2 HG_URL=bundle2
66 69 updating to branch default
67 70 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
68 71 $ hg -R other log -G
@@ -84,6 +87,7 b' pull'
84 87 adding file changes
85 88 added 1 changesets with 1 changes to 1 files (+1 heads)
86 89 1 new obsolescence markers
90 changegroup hook: HG_NEW_OBSMARKERS=1 HG_SOURCE=bundle2 HG_URL=bundle2
87 91 (run 'hg heads' to see heads, 'hg merge' to merge)
88 92 $ hg -R other log -G
89 93 o 2:24b6387c8c8c draft Nicolas Dumazet <nicdumz.commits@gmail.com> F
@@ -155,6 +159,7 b' push'
155 159 pushing to other
156 160 searching for changes
157 161 b2x-transactionclose hook: HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=1 HG_SOURCE=push HG_URL=push
162 changegroup hook: HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=1 HG_SOURCE=bundle2 HG_URL=bundle2
158 163 remote: adding changesets
159 164 remote: adding manifests
160 165 remote: adding file changes
@@ -186,6 +191,7 b' pull over ssh'
186 191 added 1 changesets with 1 changes to 1 files (+1 heads)
187 192 1 new obsolescence markers
188 193 updating bookmark book_02de
194 changegroup hook: HG_NEW_OBSMARKERS=1 HG_SOURCE=bundle2 HG_URL=bundle2
189 195 (run 'hg heads' to see heads, 'hg merge' to merge)
190 196 $ hg -R other debugobsolete
191 197 1111111111111111111111111111111111111111 9520eea781bcca16c1e15acc0ba14335a0e8e5ba 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
@@ -207,6 +213,7 b' pull over http'
207 213 added 1 changesets with 1 changes to 1 files (+1 heads)
208 214 1 new obsolescence markers
209 215 updating bookmark book_42cc
216 changegroup hook: HG_NEW_OBSMARKERS=1 HG_SOURCE=bundle2 HG_URL=bundle2
210 217 (run 'hg heads .' to see heads, 'hg merge' to merge)
211 218 $ cat main-error.log
212 219 $ hg -R other debugobsolete
@@ -228,6 +235,7 b' push over ssh'
228 235 remote: 1 new obsolescence markers
229 236 updating bookmark book_5fdd
230 237 remote: b2x-transactionclose hook: HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=1 HG_SOURCE=serve HG_URL=remote:ssh:127.0.0.1
238 remote: changegroup hook: HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=1 HG_SOURCE=bundle2 HG_URL=bundle2
231 239 $ hg -R other log -G
232 240 o 6:5fddd98957c8 draft Nicolas Dumazet <nicdumz.commits@gmail.com> book_5fdd C
233 241 |
@@ -454,6 +462,7 b' Doing the actual push: hook abort'
454 462 searching for changes
455 463 transaction abort!
456 464 rollback completed
465 changegroup hook: HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=0 HG_SOURCE=bundle2 HG_URL=bundle2
457 466 abort: b2x-pretransactionclose.failpush hook exited with status 1
458 467 [255]
459 468
@@ -463,6 +472,7 b' Doing the actual push: hook abort'
463 472 abort: b2x-pretransactionclose.failpush hook exited with status 1
464 473 remote: transaction abort!
465 474 remote: rollback completed
475 remote: changegroup hook: HG_BUNDLE2-EXP=1 HG_NEW_OBSMARKERS=0 HG_SOURCE=bundle2 HG_URL=bundle2
466 476 [255]
467 477
468 478 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6
General Comments 0
You need to be logged in to leave comments. Login now