Mercurial > hg
comparison hgwebdir.cgi @ 6141:90e5c82a3859
Backed out changeset b913d3aacddc (see issue971/msg5317)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 18 Feb 2008 19:20:22 +0100 |
parents | b913d3aacddc |
children | 50a277e6ceae |
comparison
equal
deleted
inserted
replaced
5995:b913d3aacddc | 6141:90e5c82a3859 |
---|---|
20 # | 20 # |
21 #import os | 21 #import os |
22 #os.environ["HGENCODING"] = "UTF-8" | 22 #os.environ["HGENCODING"] = "UTF-8" |
23 | 23 |
24 from mercurial.hgweb.hgwebdir_mod import hgwebdir | 24 from mercurial.hgweb.hgwebdir_mod import hgwebdir |
25 from mercurial import dispatch, ui | |
26 import mercurial.hgweb.wsgicgi as wsgicgi | 25 import mercurial.hgweb.wsgicgi as wsgicgi |
27 | 26 |
28 # The config file looks like this. You can have paths to individual | 27 # The config file looks like this. You can have paths to individual |
29 # repos, collections of repos in a directory tree, or both. | 28 # repos, collections of repos in a directory tree, or both. |
30 # | 29 # |
42 # Then repos will list as bar and quux/baz. | 41 # Then repos will list as bar and quux/baz. |
43 # | 42 # |
44 # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples | 43 # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples |
45 # or use a dictionary with entries like 'virtual/path': '/real/path' | 44 # or use a dictionary with entries like 'virtual/path': '/real/path' |
46 | 45 |
47 u = ui.ui(report_untrusted=False, interactive=False) | 46 application = hgwebdir('hgweb.config') |
48 dispatch.profiled(u, lambda: wsgicgi.launch(hgwebdir('hgweb.config', u))) | 47 wsgicgi.launch(application) |