tests/test-push-warn.t
changeset 29129 e6dfb0e4eeef
parent 27752 29cfc474c5fd
child 29659 7eb9ee3e6b14
--- a/tests/test-push-warn.t	Fri May 06 22:21:32 2016 +0530
+++ b/tests/test-push-warn.t	Thu Apr 28 10:37:47 2016 -0400
@@ -785,4 +785,14 @@
   no changes found
   [1]
 
+Test fail hook
+
+  $ hg push inner --config hooks.fail-push="echo running fail-push hook"
+  pushing to inner
+  searching for changes
+  running fail-push hook
+  abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'!
+  (merge or see "hg help push" for details about pushing new heads)
+  [255]
+
   $ cd ..