Mercurial > hg
diff tests/test-hook.t @ 27278:42aa0e570eaa
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 07 Dec 2015 18:06:13 -0600 |
parents | a01d3d32b53a 10695f8f3323 |
children | d6d3cf5fda6f |
line wrap: on
line diff
--- a/tests/test-hook.t Sat Dec 05 23:14:49 2015 -0800 +++ b/tests/test-hook.t Mon Dec 07 18:06:13 2015 -0600 @@ -681,10 +681,19 @@ $ hg tag -f foo ['a', 'foo', 'tip'] +post-init hooks must not crash (issue4983) +This also creates the `to` repo for the next test block. + + $ cd .. + $ cat << EOF >> hgrc-with-post-init-hook + > [hooks] + > post-init = printenv.py post-init + > EOF + $ HGRCPATH=hgrc-with-post-init-hook hg init to + post-init hook: HG_ARGS=init to HG_OPTS={'insecure': None, 'remotecmd': '', 'ssh': ''} HG_PATS=['to'] HG_RESULT=0 + new commits must be visible in pretxnchangegroup (issue3428) - $ cd .. - $ hg init to $ echo '[hooks]' >> to/.hg/hgrc $ echo 'prechangegroup = hg --traceback tip' >> to/.hg/hgrc $ echo 'pretxnchangegroup = hg --traceback tip' >> to/.hg/hgrc