Show More
@@ -119,6 +119,7 b' testpats = [' | |||||
119 | (r'\[[^\]]+==', '[ foo == bar ] is a bashism, use [ foo = bar ] instead'), |
|
119 | (r'\[[^\]]+==', '[ foo == bar ] is a bashism, use [ foo = bar ] instead'), | |
120 | (r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w', |
|
120 | (r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w', | |
121 | "use egrep for extended grep syntax"), |
|
121 | "use egrep for extended grep syntax"), | |
|
122 | (r'(^|\|\s*)e?grep .*\\S', "don't use \\S in regular expression"), | |||
122 | (r'(?<!!)/bin/', "don't use explicit paths for tools"), |
|
123 | (r'(?<!!)/bin/', "don't use explicit paths for tools"), | |
123 | (r'#!.*/bash', "don't use bash in shebang, use sh"), |
|
124 | (r'#!.*/bash', "don't use bash in shebang, use sh"), | |
124 | (r'[^\n]\Z', "no trailing newline"), |
|
125 | (r'[^\n]\Z', "no trailing newline"), |
@@ -36,7 +36,7 b' Tests about metadataonlyctx' | |||||
36 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
36 | date: Thu Jan 01 00:00:00 1970 +0000 | |
37 | summary: Changed |
|
37 | summary: Changed | |
38 |
|
38 | |||
39 |
$ hg --config extensions.metaedit=$TESTTMP/metaedit.py metaedit 'parents=0' 2>&1 | egrep '^ |
|
39 | $ hg --config extensions.metaedit=$TESTTMP/metaedit.py metaedit 'parents=0' 2>&1 | egrep '^RuntimeError' | |
40 | RuntimeError: can't reuse the manifest: its p1 doesn't match the new ctx p1 |
|
40 | RuntimeError: can't reuse the manifest: its p1 doesn't match the new ctx p1 | |
41 |
|
41 | |||
42 | $ hg --config extensions.metaedit=$TESTTMP/metaedit.py metaedit 'user=foo <foo@example.com>' |
|
42 | $ hg --config extensions.metaedit=$TESTTMP/metaedit.py metaedit 'user=foo <foo@example.com>' |
General Comments 0
You need to be logged in to leave comments.
Login now