# HG changeset patch # User Bryan O'Sullivan # Date 1174974348 25200 # Node ID 06d18465df03f255578b488d6c0981f2c2e7a8d5 # Parent 8f4c9ae918afe31642c5ff543f667e27ce7c5b0e Make an example run more predictably. diff -r 8f4c9ae918af -r 06d18465df03 en/examples/hook.ws --- a/en/examples/hook.ws Mon Mar 26 22:28:25 2007 -0700 +++ b/en/examples/hook.ws Mon Mar 26 22:45:48 2007 -0700 @@ -24,7 +24,7 @@ cat .hg/hgrc echo 'a ' >> a hg commit -A -m 'add new line with trailing whitespace' -perl -pi -e 's,\s+$,,' a +sed -i 's, *$,,' a hg commit -A -m 'trimmed trailing whitespace' #$ name: diff -r 8f4c9ae918af -r 06d18465df03 en/examples/hook.ws.better.out --- a/en/examples/hook.ws.better.out Mon Mar 26 22:28:25 2007 -0700 +++ b/en/examples/hook.ws.better.out Mon Mar 26 22:45:48 2007 -0700 @@ -8,9 +8,9 @@ abort: pretxncommit.whitespace hook exited with status 1 transaction abort! rollback completed -$ \textbf{perl -pi -e 's,\textbackslash{}s+$,,' a} +$ \textbf{sed -i 's, *$,,' a} $ \textbf{hg commit -A -m 'trimmed trailing whitespace'} -a, line 1: trailing whitespace added +a, line 2: trailing whitespace added commit message saved to .hg/commit.save abort: pretxncommit.whitespace hook exited with status 1 transaction abort!