Show More
@@ -2938,8 +2938,9 b' def serve(ui, repo, **opts):' | |||
|
2938 | 2938 | if repo and repo.ui != baseui: |
|
2939 | 2939 | repo.ui.setconfig("web", o, val) |
|
2940 | 2940 | |
|
2941 |
|
|
|
2942 | app = hgwebdir_mod.hgwebdir(opts['webdir_conf'], baseui=ui) | |
|
2941 | o = opts.get('web_conf') or opts.get('webdir_conf') | |
|
2942 | if o: | |
|
2943 | app = hgwebdir_mod.hgwebdir(o, baseui=ui) | |
|
2943 | 2944 | elif repo is not None: |
|
2944 | 2945 | app = hgweb_mod.hgweb(hg.repository(repo.ui, repo.root)) |
|
2945 | 2946 | else: |
@@ -3851,8 +3852,10 b' table = {' | |||
|
3851 | 3852 | _('prefix path to serve from (default: server root)')), |
|
3852 | 3853 | ('n', 'name', '', |
|
3853 | 3854 | _('name to show in web pages (default: working directory)')), |
|
3854 |
('', 'web |
|
|
3855 | ('', 'web-conf', '', _('name of the hgweb config file' | |
|
3855 | 3856 | ' (serve more than one repository)')), |
|
3857 | ('', 'webdir-conf', '', _('name of the hgweb config file' | |
|
3858 | ' (DEPRECATED)')), | |
|
3856 | 3859 | ('', 'pid-file', '', _('name of file to write process ID to')), |
|
3857 | 3860 | ('', 'stdio', None, _('for remote clients')), |
|
3858 | 3861 | ('t', 'templates', '', _('web templates to use')), |
@@ -143,7 +143,7 b' root' | |||
|
143 | 143 | --traceback |
|
144 | 144 | --verbose |
|
145 | 145 | --version |
|
146 |
--web |
|
|
146 | --web-conf | |
|
147 | 147 | -6 |
|
148 | 148 | -A |
|
149 | 149 | -E |
@@ -176,7 +176,7 b' merge: force, rev, preview' | |||
|
176 | 176 | pull: update, force, rev, branch, ssh, remotecmd |
|
177 | 177 | push: force, rev, branch, ssh, remotecmd |
|
178 | 178 | remove: after, force, include, exclude |
|
179 | serve: accesslog, daemon, daemon-pipefds, errorlog, port, address, prefix, name, webdir-conf, pid-file, stdio, templates, style, ipv6, certificate | |
|
179 | serve: accesslog, daemon, daemon-pipefds, errorlog, port, address, prefix, name, web-conf, webdir-conf, pid-file, stdio, templates, style, ipv6, certificate | |
|
180 | 180 | status: all, modified, added, removed, deleted, clean, unknown, ignored, no-status, copies, print0, rev, change, include, exclude |
|
181 | 181 | summary: remote |
|
182 | 182 | update: clean, check, date, rev |
General Comments 0
You need to be logged in to leave comments.
Login now