##// END OF EJS Templates
check-code: fix check for trailing whitespace on continued lines too...
Mads Kiilerich -
r17347:2da47de3 default
parent child Browse files
Show More
@@ -91,7 +91,7 b' testfilters = ['
91 uprefix = r"^ \$ "
91 uprefix = r"^ \$ "
92 utestpats = [
92 utestpats = [
93 [
93 [
94 (r'^(\S.*|| \$ .*)[ \t]\n', "trailing whitespace on non-output"),
94 (r'^(\S.*|| [$>] .*)[ \t]\n', "trailing whitespace on non-output"),
95 (uprefix + r'.*\|\s*sed[^|>\n]*\n',
95 (uprefix + r'.*\|\s*sed[^|>\n]*\n',
96 "use regex test output patterns instead of sed"),
96 "use regex test output patterns instead of sed"),
97 (uprefix + r'(true|exit 0)', "explicit zero exit unnecessary"),
97 (uprefix + r'(true|exit 0)', "explicit zero exit unnecessary"),
@@ -279,10 +279,10 b' Test annotate with whitespace options'
279 > EOF
279 > EOF
280 $ hg ci -Am "adda"
280 $ hg ci -Am "adda"
281 adding a
281 adding a
282 $ cat > a <<EOF
282 $ sed 's/EOL$//g' > a <<EOF
283 > a a
283 > a a
284 >
284 >
285 >
285 > EOL
286 > b b
286 > b b
287 > EOF
287 > EOF
288 $ hg ci -m "changea"
288 $ hg ci -m "changea"
@@ -3,7 +3,7 b''
3
3
4 $ cat >> $HGRCPATH <<EOF
4 $ cat >> $HGRCPATH <<EOF
5 > [extensions]
5 > [extensions]
6 > convert =
6 > convert =
7 > graphlog =
7 > graphlog =
8 > EOF
8 > EOF
9
9
@@ -14,7 +14,7 b' Convert trunk and branches'
14
14
15 $ cat > branchmap <<EOF
15 $ cat > branchmap <<EOF
16 > old3 newbranch
16 > old3 newbranch
17 >
17 >
18 >
18 >
19 > EOF
19 > EOF
20 $ hg convert --branchmap=branchmap --datesort -r 10 svn-repo A-hg
20 $ hg convert --branchmap=branchmap --datesort -r 10 svn-repo A-hg
@@ -3,7 +3,7 b''
3
3
4 $ cat >> $HGRCPATH <<EOF
4 $ cat >> $HGRCPATH <<EOF
5 > [extensions]
5 > [extensions]
6 > convert =
6 > convert =
7 > graphlog =
7 > graphlog =
8 > EOF
8 > EOF
9
9
@@ -3,7 +3,7 b''
3
3
4 $ cat >> $HGRCPATH <<EOF
4 $ cat >> $HGRCPATH <<EOF
5 > [extensions]
5 > [extensions]
6 > convert =
6 > convert =
7 > graphlog =
7 > graphlog =
8 > EOF
8 > EOF
9
9
@@ -155,7 +155,7 b" Test convert progress bar'"
155
155
156 $ cat >> $HGRCPATH <<EOF
156 $ cat >> $HGRCPATH <<EOF
157 > [extensions]
157 > [extensions]
158 > progress =
158 > progress =
159 > [progress]
159 > [progress]
160 > assume-tty = 1
160 > assume-tty = 1
161 > delay = 0
161 > delay = 0
@@ -16,7 +16,7 b''
16
16
17 $ cat >> $HGRCPATH <<EOF
17 $ cat >> $HGRCPATH <<EOF
18 > [extensions]
18 > [extensions]
19 > convert =
19 > convert =
20 > graphlog =
20 > graphlog =
21 > EOF
21 > EOF
22
22
@@ -3,7 +3,7 b''
3
3
4 $ cat >> $HGRCPATH <<EOF
4 $ cat >> $HGRCPATH <<EOF
5 > [extensions]
5 > [extensions]
6 > convert =
6 > convert =
7 > graphlog =
7 > graphlog =
8 > [convert]
8 > [convert]
9 > svn.trunk = mytrunk
9 > svn.trunk = mytrunk
@@ -3,7 +3,7 b''
3
3
4 $ cat >> $HGRCPATH <<EOF
4 $ cat >> $HGRCPATH <<EOF
5 > [extensions]
5 > [extensions]
6 > convert =
6 > convert =
7 > graphlog =
7 > graphlog =
8 > EOF
8 > EOF
9 $ convert()
9 $ convert()
@@ -3,7 +3,7 b''
3
3
4 $ cat >> $HGRCPATH <<EOF
4 $ cat >> $HGRCPATH <<EOF
5 > [extensions]
5 > [extensions]
6 > convert =
6 > convert =
7 > graphlog =
7 > graphlog =
8 > EOF
8 > EOF
9
9
@@ -83,7 +83,7 b' o (0) root'
83
83
84 $ cat > printrevset.py <<EOF
84 $ cat > printrevset.py <<EOF
85 > from mercurial import extensions, revset, commands, cmdutil
85 > from mercurial import extensions, revset, commands, cmdutil
86 >
86 >
87 > def uisetup(ui):
87 > def uisetup(ui):
88 > def printrevset(orig, ui, repo, *pats, **opts):
88 > def printrevset(orig, ui, repo, *pats, **opts):
89 > if opts.get('print_revset'):
89 > if opts.get('print_revset'):
@@ -322,12 +322,12 b' Multiple binary files:'
322
322
323 Filenames with spaces:
323 Filenames with spaces:
324
324
325 $ hg import -d "1000000 0" -m spaces - <<EOF
325 $ sed 's,EOL$,,g' <<EOF | hg import -d "1000000 0" -m spaces -
326 > diff --git a/foo bar b/foo bar
326 > diff --git a/foo bar b/foo bar
327 > new file mode 100644
327 > new file mode 100644
328 > index 0000000..257cc56
328 > index 0000000..257cc56
329 > --- /dev/null
329 > --- /dev/null
330 > +++ b/foo bar
330 > +++ b/foo bar EOL
331 > @@ -0,0 +1 @@
331 > @@ -0,0 +1 @@
332 > +foo
332 > +foo
333 > EOF
333 > EOF
@@ -128,7 +128,7 b''
128 > catlogd 6
128 > catlogd 6
129 >
129 >
130 > drop 6
130 > drop 6
131 >
131 >
132 >
132 >
133 > echo ==== qnew -u
133 > echo ==== qnew -u
134 > hg qnew -u jane 6.patch
134 > hg qnew -u jane 6.patch
@@ -169,7 +169,7 b' try to import --push'
169
169
170 $ cat > appendfoo.diff <<EOF
170 $ cat > appendfoo.diff <<EOF
171 > append foo
171 > append foo
172 >
172 >
173 > diff -r 07f494440405 -r 261500830e46 baz
173 > diff -r 07f494440405 -r 261500830e46 baz
174 > --- /dev/null Thu Jan 01 00:00:00 1970 +0000
174 > --- /dev/null Thu Jan 01 00:00:00 1970 +0000
175 > +++ b/baz Thu Jan 01 00:00:00 1970 +0000
175 > +++ b/baz Thu Jan 01 00:00:00 1970 +0000
@@ -179,7 +179,7 b' try to import --push'
179
179
180 $ cat > appendbar.diff <<EOF
180 $ cat > appendbar.diff <<EOF
181 > append bar
181 > append bar
182 >
182 >
183 > diff -r 07f494440405 -r 261500830e46 baz
183 > diff -r 07f494440405 -r 261500830e46 baz
184 > --- a/baz Thu Jan 01 00:00:00 1970 +0000
184 > --- a/baz Thu Jan 01 00:00:00 1970 +0000
185 > +++ b/baz Thu Jan 01 00:00:00 1970 +0000
185 > +++ b/baz Thu Jan 01 00:00:00 1970 +0000
@@ -61,7 +61,7 b' Test helper functions:'
61 > hg up $opt $targetrev
61 > hg up $opt $targetrev
62 > hg parent --template 'parent={rev}\n'
62 > hg parent --template 'parent={rev}\n'
63 > hg stat -S
63 > hg stat -S
64 > }
64 > }
65
65
66 $ norevtest () {
66 $ norevtest () {
67 > msg=$1
67 > msg=$1
@@ -74,7 +74,7 b' Test helper functions:'
74 > hg up $opt
74 > hg up $opt
75 > hg parent --template 'parent={rev}\n'
75 > hg parent --template 'parent={rev}\n'
76 > hg stat -S
76 > hg stat -S
77 > }
77 > }
78
78
79 Test cases are documented in a table in the update function of merge.py.
79 Test cases are documented in a table in the update function of merge.py.
80 Cases are run as shown in that table, row by row.
80 Cases are run as shown in that table, row by row.
General Comments 0
You need to be logged in to leave comments. Login now