Mercurial > p > roundup > code
view website/issues/detectors/no_texthtml.py @ 6281:042c50d5e06e
Make rev 2345:acbed367 use hash not revision number
Change regexp to make rev[whitespace][rev#]:[hash] refer to repo using
hash not rev#.
Similar for hg[whitespace][rev#]:[hash].
Also enhance quicktest to search for input token in output by
default. Set substr=False on invocation if you don't want this
check. Using substr can show incorrect parsing/reconstitution of
original string in output.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 29 Oct 2020 23:43:05 -0400 |
| parents | 0942fe89e82e |
| children |
line wrap: on
line source
def audit_html_files(db, cl, nodeid, newvalues): if 'type' in newvalues and newvalues['type'] == 'text/html': newvalues['type'] = 'text/plain' def init(db): db.file.audit('set', audit_html_files) db.file.audit('create', audit_html_files)
