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