Fwd: [modwsgi] Mercurial and mod_wsgi.
Antoine Pitrou
solipsis at pitrou.net
Mon Sep 1 10:32:51 UTC 2008
FWIW, I use the following in my wsgi script for Mercurial:
import sys
# Against mod_wsgi protections
sys.stdout = open('/dev/null', 'a+')
sys.stderr = open('/dev/null', 'a+')
I think hg is at fault here. Not only for flushing stdout, but also for spouting
warnings when run under another user. For the Web front-end, it sounds quite
legitimate to run hg under an user such as "nobody" who won't have write access
to anything.
Regards
Antoine.
More information about the Mercurial-devel
mailing list