hgbook
view en/examples/hook.ws.better.out @ 144:006bbad1f190
Add expected output files.
This makes it possible to spot changes in Mercurial's output and
behaviour over time.
This makes it possible to spot changes in Mercurial's output and
behaviour over time.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue Mar 06 21:44:56 2007 -0800 (2007-03-06) |
parents | |
children | 8cf40d4d9377 |
line source
1 $ \textbf{cat .hg/hgrc}
2 [hooks]
3 pretxncommit.whitespace = check_whitespace.py
4 $ \textbf{echo 'a ' >> a}
5 $ \textbf{hg commit -A -m 'add new line with trailing whitespace'}
6 adding check_whitespace.py
7 a, line 2: trailing whitespace added
8 check_whitespace.py, line 1: trailing whitespace added
9 check_whitespace.py, line 2: trailing whitespace added
10 check_whitespace.py, line 3: trailing whitespace added
11 check_whitespace.py, line 4: trailing whitespace added
12 check_whitespace.py, line 5: trailing whitespace added
13 check_whitespace.py, line 6: trailing whitespace added
14 check_whitespace.py, line 7: trailing whitespace added
15 check_whitespace.py, line 8: trailing whitespace added
16 check_whitespace.py, line 9: trailing whitespace added
17 check_whitespace.py, line 10: trailing whitespace added
18 check_whitespace.py, line 11: trailing whitespace added
19 check_whitespace.py, line 12: trailing whitespace added
20 check_whitespace.py, line 13: trailing whitespace added
21 check_whitespace.py, line 14: trailing whitespace added
22 check_whitespace.py, line 15: trailing whitespace added
23 check_whitespace.py, line 16: trailing whitespace added
24 check_whitespace.py, line 17: trailing whitespace added
25 check_whitespace.py, line 18: trailing whitespace added
26 check_whitespace.py, line 19: trailing whitespace added
27 check_whitespace.py, line 20: trailing whitespace added
28 check_whitespace.py, line 21: trailing whitespace added
29 check_whitespace.py, line 22: trailing whitespace added
30 check_whitespace.py, line 23: trailing whitespace added
31 check_whitespace.py, line 24: trailing whitespace added
32 check_whitespace.py, line 25: trailing whitespace added
33 check_whitespace.py, line 26: trailing whitespace added
34 check_whitespace.py, line 27: trailing whitespace added
35 check_whitespace.py, line 28: trailing whitespace added
36 check_whitespace.py, line 29: trailing whitespace added
37 check_whitespace.py, line 30: trailing whitespace added
38 check_whitespace.py, line 31: trailing whitespace added
39 check_whitespace.py, line 32: trailing whitespace added
40 check_whitespace.py, line 33: trailing whitespace added
41 check_whitespace.py, line 34: trailing whitespace added
42 check_whitespace.py, line 35: trailing whitespace added
43 check_whitespace.py, line 36: trailing whitespace added
44 check_whitespace.py, line 37: trailing whitespace added
45 check_whitespace.py, line 38: trailing whitespace added
46 check_whitespace.py, line 39: trailing whitespace added
47 check_whitespace.py, line 40: trailing whitespace added
48 check_whitespace.py, line 41: trailing whitespace added
49 check_whitespace.py, line 42: trailing whitespace added
50 check_whitespace.py, line 43: trailing whitespace added
51 check_whitespace.py, line 44: trailing whitespace added
52 commit message saved to .hg/commit.save
53 abort: pretxncommit.whitespace hook exited with status 1
54 transaction abort!
55 rollback completed
56 $ \textbf{perl -pi -e 's,\textbackslash{}s+$,,' a}
57 $ \textbf{hg commit -A -m 'trimmed trailing whitespace'}
58 a, line 1: trailing whitespace added
59 check_whitespace.py, line 1: trailing whitespace added
60 check_whitespace.py, line 2: trailing whitespace added
61 check_whitespace.py, line 3: trailing whitespace added
62 check_whitespace.py, line 4: trailing whitespace added
63 check_whitespace.py, line 5: trailing whitespace added
64 check_whitespace.py, line 6: trailing whitespace added
65 check_whitespace.py, line 7: trailing whitespace added
66 check_whitespace.py, line 8: trailing whitespace added
67 check_whitespace.py, line 9: trailing whitespace added
68 check_whitespace.py, line 10: trailing whitespace added
69 check_whitespace.py, line 11: trailing whitespace added
70 check_whitespace.py, line 12: trailing whitespace added
71 check_whitespace.py, line 13: trailing whitespace added
72 check_whitespace.py, line 14: trailing whitespace added
73 check_whitespace.py, line 15: trailing whitespace added
74 check_whitespace.py, line 16: trailing whitespace added
75 check_whitespace.py, line 17: trailing whitespace added
76 check_whitespace.py, line 18: trailing whitespace added
77 check_whitespace.py, line 19: trailing whitespace added
78 check_whitespace.py, line 20: trailing whitespace added
79 check_whitespace.py, line 21: trailing whitespace added
80 check_whitespace.py, line 22: trailing whitespace added
81 check_whitespace.py, line 23: trailing whitespace added
82 check_whitespace.py, line 24: trailing whitespace added
83 check_whitespace.py, line 25: trailing whitespace added
84 check_whitespace.py, line 26: trailing whitespace added
85 check_whitespace.py, line 27: trailing whitespace added
86 check_whitespace.py, line 28: trailing whitespace added
87 check_whitespace.py, line 29: trailing whitespace added
88 check_whitespace.py, line 30: trailing whitespace added
89 check_whitespace.py, line 31: trailing whitespace added
90 check_whitespace.py, line 32: trailing whitespace added
91 check_whitespace.py, line 33: trailing whitespace added
92 check_whitespace.py, line 34: trailing whitespace added
93 check_whitespace.py, line 35: trailing whitespace added
94 check_whitespace.py, line 36: trailing whitespace added
95 check_whitespace.py, line 37: trailing whitespace added
96 check_whitespace.py, line 38: trailing whitespace added
97 check_whitespace.py, line 39: trailing whitespace added
98 check_whitespace.py, line 40: trailing whitespace added
99 check_whitespace.py, line 41: trailing whitespace added
100 check_whitespace.py, line 42: trailing whitespace added
101 check_whitespace.py, line 43: trailing whitespace added
102 check_whitespace.py, line 44: trailing whitespace added
103 commit message saved to .hg/commit.save
104 abort: pretxncommit.whitespace hook exited with status 1
105 transaction abort!
106 rollback completed