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