hgbook
changeset 165:06d18465df03
Make an example run more predictably.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon Mar 26 22:45:48 2007 -0700 (2007-03-26) |
parents | 8f4c9ae918af |
children | 08a4467f4891 |
files | en/examples/hook.ws en/examples/hook.ws.better.out |
line diff
1.1 --- a/en/examples/hook.ws Mon Mar 26 22:28:25 2007 -0700 1.2 +++ b/en/examples/hook.ws Mon Mar 26 22:45:48 2007 -0700 1.3 @@ -24,7 +24,7 @@ 1.4 cat .hg/hgrc 1.5 echo 'a ' >> a 1.6 hg commit -A -m 'add new line with trailing whitespace' 1.7 -perl -pi -e 's,\s+$,,' a 1.8 +sed -i 's, *$,,' a 1.9 hg commit -A -m 'trimmed trailing whitespace' 1.10 1.11 #$ name:
2.1 --- a/en/examples/hook.ws.better.out Mon Mar 26 22:28:25 2007 -0700 2.2 +++ b/en/examples/hook.ws.better.out Mon Mar 26 22:45:48 2007 -0700 2.3 @@ -8,9 +8,9 @@ 2.4 abort: pretxncommit.whitespace hook exited with status 1 2.5 transaction abort! 2.6 rollback completed 2.7 -$ \textbf{perl -pi -e 's,\textbackslash{}s+$,,' a} 2.8 +$ \textbf{sed -i 's, *$,,' a} 2.9 $ \textbf{hg commit -A -m 'trimmed trailing whitespace'} 2.10 -a, line 1: trailing whitespace added 2.11 +a, line 2: trailing whitespace added 2.12 commit message saved to .hg/commit.save 2.13 abort: pretxncommit.whitespace hook exited with status 1 2.14 transaction abort!