# HG changeset patch # User Matt Harbison # Date 1429551790 14400 # Node ID 2f2de8a7f97f4357ae2b45db8d24b5e606a9a79f # Parent 9b02b678888ed7b600e94bca0613e800bbe29dee test-hook.t: don't directly use redirect to /dev/null in hook for Windows This goes with 57f1dbc99631. External hooks are run in cmd.exe, which doesn't know about /dev/null, but sh can handle it. diff -r 9b02b678888e -r 2f2de8a7f97f tests/test-hook.t --- a/tests/test-hook.t Mon Apr 20 18:13:44 2015 -0500 +++ b/tests/test-hook.t Mon Apr 20 13:43:10 2015 -0400 @@ -17,7 +17,7 @@ > pretxnclose = sh -c "HG_LOCAL= HG_TAG= python \"$TESTDIR/printenv.py\" pretxnclose" > txnclose = sh -c "HG_LOCAL= HG_TAG= python \"$TESTDIR/printenv.py\" txnclose" > txnabort = sh -c "HG_LOCAL= HG_TAG= python \"$TESTDIR/printenv.py\" txnabort" - > txnclose.checklock = hg debuglock > /dev/null + > txnclose.checklock = sh -c "hg debuglock > /dev/null" > EOF $ echo a > a $ hg add a