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