##// END OF EJS Templates
packaging: move version derivation to run_wix_packaging()...
packaging: move version derivation to run_wix_packaging() With the previous commit moving signing inline, we no longer need to compute the version string in build_installer() and can instead move this logic to run_wix_packaging(). This makes the logic in build_installer() simpler, which makes it easier to implement alternate building mechanisms. Differential Revision: https://phab.mercurial-scm.org/D8476

File last commit:

r44058:99e231af default
r45273:a5740490 stable
Show More
hgweb.fcgi
22 lines | 667 B | text/plain | TextLexer
Matt Mackall
hgweb: synchronize fcgi and wsgi scripts
r11002 #!/usr/bin/env python
#
# An example FastCGI script for use with flup, edit as necessary
# Path to repo or hgweb config to serve (see 'hg help hgweb')
config = "/path/to/repo/or/config"
Matt Mackall
hgweb: add hint about finding library path with debuginstall
r15475 # Uncomment and adjust if Mercurial is not installed system-wide
# (consult "installed modules" path from 'hg debuginstall'):
Gregory Szorc
black: blacken scripts...
r44058 # import sys; sys.path.insert(0, "/path/to/python/lib")
Matt Mackall
hgweb: synchronize fcgi and wsgi scripts
r11002
# Uncomment to send python tracebacks to the browser if an error occurs:
Gregory Szorc
black: blacken scripts...
r44058 # import cgitb; cgitb.enable()
Matt Mackall
hgweb: synchronize fcgi and wsgi scripts
r11002
Gregory Szorc
black: blacken scripts...
r44058 from mercurial import demandimport
demandimport.enable()
Matt Mackall
hgweb: synchronize fcgi and wsgi scripts
r11002 from mercurial.hgweb import hgweb
from flup.server.fcgi import WSGIServer
Gregory Szorc
black: blacken scripts...
r44058
Matt Mackall
hgweb: synchronize fcgi and wsgi scripts
r11002 application = hgweb(config)
WSGIServer(application).run()