##// END OF EJS Templates
hg: Redirect Mercurial stdout/stderr to logging when running as WSGI...
hg: Redirect Mercurial stdout/stderr to logging when running as WSGI Any "console" output from Mercurial when Kallithea is running from WSGI should end up in Kallithea's logs. That seems like a nice general feature. This will however also solve another rare but more critical problem: Mercurial is writing to sys.stdout / sys.stderr, using several layers of wrapping. Since Mercurial 5.5 (with https://repo.mercurial-scm.org/hg/rev/8e04607023e5 ), all writes are given a memoryview. Apache httpd mod_wsgi is invoking the WSGI with a custom mod_wsgi.Log injected in sys.stdout / sys.stderr . This logger can however not handle memoryview - https://github.com/GrahamDumpleton/mod_wsgi/issues/863 .

File last commit:

r8550:52816813 default
r8795:fe050a93 stable
Show More
run-all-cleanup
17 lines | 510 B | text/plain | TextLexer
Søren Løvborg
run-all-cleanup: fix incorrect interpreter...
r6023 #!/bin/sh
Mads Kiilerich
scripts: introduce scripts/run-all-cleanup - run this before committing to make sure some aspects of the coding style is maintained
r5848
# Convenience script for running various idempotent source code cleanup scripts
set -e
set -x
Mads Kiilerich
docs: describe, visualize, and verify internal code structure and layering...
r8550 hg files 'set:!binary()&grep("^#!.*python")' 'set:**.py' | xargs scripts/deps.py
dot -Tsvg deps.dot > deps.svg
Mads Kiilerich
scripts: introduce scripts/run-all-cleanup - run this before committing to make sure some aspects of the coding style is maintained
r5848 scripts/docs-headings.py
scripts/generate-ini.py
scripts/whitespacecleanup.sh
Mads Kiilerich
scripts: introduce source_format.py to fix up the module name in file headers
r8549 hg files 'set:!binary()&grep("^#!.*python")' 'set:**.py' | xargs scripts/source_format.py
Mads Kiilerich
cleanup: run pyflakes as a part of scripts/run-all-cleanup...
r8109
Mads Kiilerich
scripts: handle running with pending deleted files...
r8548 hg files 'set:!binary()&grep("^#!.*python")' 'set:**.py' | xargs scripts/pyflakes
Mads Kiilerich
scripts: make output from run-all-cleanup easier to parse...
r8164 echo "no blocking problems found by $0"