Mercurial > p > roundup > code
view website/issues/detectors/severityauditor.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 init_severity(db, cl, nodeid, newvalues): """Make sure severity is set on new issues""" if 'severity' in newvalues and newvalues['severity']: return normal = db.severity.lookup('normal') newvalues['severity'] = normal def init(db): db.issue.audit('create', init_severity)
