##// END OF EJS Templates
tests: tighten checks for octal escapes in shell printf....
Jim Hague -
r16098:c6c9b83a stable
parent child Browse files
Show More
@@ -54,7 +54,7 b' testpats = ['
54 54 (r'head -c', "don't use 'head -c', use 'dd'"),
55 55 (r'sha1sum', "don't use sha1sum, use $TESTDIR/md5sum.py"),
56 56 (r'ls.*-\w*R', "don't use 'ls -R', use 'find'"),
57 (r'printf.*\\\d\d\d', "don't use 'printf \NNN', use Python"),
57 (r'printf.*\\\d{1,3}', "don't use 'printf \NNN', use Python"),
58 58 (r'printf.*\\x', "don't use printf \\x, use Python"),
59 59 (r'\$\(.*\)', "don't use $(expr), use `expr`"),
60 60 (r'rm -rf \*', "don't use naked rm -rf, target a directory"),
@@ -35,7 +35,7 b' Narrow diffstat:'
35 35
36 36 $ hg ci -m appenda
37 37
38 $ printf '\0' > c
38 >>> open("c", "wb").write("\0")
39 39 $ touch d
40 40 $ hg add c d
41 41
@@ -54,7 +54,7 b' Binary git diffstat:'
54 54
55 55 $ hg ci -m createb
56 56
57 $ printf '\0' > "file with spaces"
57 >>> open("file with spaces", "wb").write("\0")
58 58 $ hg add "file with spaces"
59 59
60 60 Filename with spaces diffstat:
@@ -169,10 +169,10 b' hg cat files and symlink, no expansion'
169 169
170 170 hg status of kw-ignored binary file starting with '\1\n'
171 171
172 $ printf '\1\nfoo' > i
172 >>> open("i", "wb").write("\1\nfoo")
173 173 $ hg -q commit -Am metasep i
174 174 $ hg status
175 $ printf '\1\nbar' > i
175 >>> open("i", "wb").write("\1\nbar")
176 176 $ hg status
177 177 M i
178 178 $ hg -q commit -m "modify metasep" i
@@ -279,12 +279,12 b" hg status of binary file starting with '"
279 279
280 280 $ hg init repo5
281 281 $ cd repo5
282 $ printf '\1\nfoo' > 010a
282 >>> open("010a", "wb").write("\1\nfoo")
283 283 $ hg ci -q -A -m 'initial checkin'
284 284 $ hg status -A
285 285 C 010a
286 286
287 $ printf '\1\nbar' > 010a
287 >>> open("010a", "wb").write("\1\nbar")
288 288 $ hg status -A
289 289 M 010a
290 290 $ hg ci -q -m 'modify 010a'
@@ -17,7 +17,7 b' hg debugsub with no remapping'
17 17 hg debugsub with remapping
18 18
19 19 $ echo '[subpaths]' >> .hg/hgrc
20 $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc
20 $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc # no-check-code
21 21
22 22 $ hg debugsub
23 23 path sub
General Comments 0
You need to be logged in to leave comments. Login now