contrib/deploy/wsgi.py @ 354188b0eca0
Allow signoff to be added when one already exists on a precursor. The current obsolescence support makes little difference between comments/signoff from a cset and the ones from its predecessors. This patch avoid a signoff from a precursor to be seen as changeable, and allow the user to re-signoff on the latest version of the changeset.
| author | Christophe de Vienne <cdevienne@gmail.com> |
|---|---|
| date | Wed, 29 Oct 2014 14:32:27 +0100 |
| parents | c0afa545124b |
| children | (none) |
# An example WSGI script for serving hg-review's web UI. # Edit as necessary. # If hg-review is not on your webserver's PYTHONPATH, uncomment the lines # below and point it at the hg-review directory. import sys sys.path.insert(0, "/path/to/hg-review") REPO = '/path/to/your/repo' READ_ONLY = True ALLOW_ANON_COMMENTS = False ANON_USER = 'Anonymous <anonymous@example.com>' SITE_ROOT = 'http://yoursite.com/optional/path' TITLE = 'Your Project' PROJECT_URL = 'http://bitbucket.org/your/project/' # or None from mercurial import hg, ui from review.web import app _ui = ui.ui() _ui.setconfig('ui', 'username', ANON_USER) repo = hg.repository(_ui, REPO) app.read_only = READ_ONLY app.allow_anon = ALLOW_ANON_COMMENTS app.site_root = SITE_ROOT.rstrip('/') app.title = TITLE app.debug = False app.ui = _ui app.project_url = PROJECT_URL app.repo = repo application = app