Show More
@@ -290,8 +290,10 Pre-transmit Hook | |||
|
290 | 290 | Hooks work with inline bundle |
|
291 | 291 | |
|
292 | 292 | $ cp server/.hg/hgrc server/.hg/hgrc-beforeinlinehooks |
|
293 |
$ |
|
|
294 | $ echo "pretransmit-inline-clone-bundle=echo foo" >> server/.hg/hgrc | |
|
293 | $ cat >> server/.hg/hgrc <<-EOF | |
|
294 | > [hooks] | |
|
295 | > pretransmit-inline-clone-bundle=sh -c 'printf "foo\n"' | |
|
296 | > EOF | |
|
295 | 297 | $ hg clone -U ssh://user@dummy/server ssh-inline-clone-hook |
|
296 | 298 | applying clone bundle from peer-bundle-cache://full.hg |
|
297 | 299 | remote: foo |
@@ -307,8 +309,10 Hooks work with inline bundle | |||
|
307 | 309 | Hooks can make an inline bundle fail |
|
308 | 310 | |
|
309 | 311 | $ cp server/.hg/hgrc-beforeinlinehooks server/.hg/hgrc |
|
310 |
$ |
|
|
311 | $ echo "pretransmit-inline-clone-bundle=echo bar && false" >> server/.hg/hgrc | |
|
312 | $ cat >> server/.hg/hgrc <<-EOF | |
|
313 | > [hooks] | |
|
314 | > pretransmit-inline-clone-bundle=sh -c 'printf "bar\n"' && false | |
|
315 | > EOF | |
|
312 | 316 | $ hg clone -U ssh://user@dummy/server ssh-inline-clone-hook-fail |
|
313 | 317 | applying clone bundle from peer-bundle-cache://full.hg |
|
314 | 318 | remote: bar |
General Comments 0
You need to be logged in to leave comments.
Login now