usr bin env python import os os environ HGENCODING UTF-8 from mercuria

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#!/usr/bin/env python
import os
os.environ['HGENCODING'] = 'UTF-8'
from mercurial.hgweb.hgwebdir_mod import hgwebdir
from mercurial.hgweb.request import wsgiapplication
def make_web_app():
return hgwebdir('/srv/www/hg/hgweb.config')
app = wsgiapplication(make_web_app)