Mercurial > hg
changeset 11003:aca9a7cf2c9a
serve: webdir_conf -> webconf
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 26 Apr 2010 11:03:40 -0500 |
parents | b1739ebb9f3f |
children | 7bb10d3dbcd6 |
files | mercurial/commands.py tests/test-debugcomplete.out |
diffstat | 2 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Apr 26 11:03:40 2010 -0500 +++ b/mercurial/commands.py Mon Apr 26 11:03:40 2010 -0500 @@ -2938,8 +2938,9 @@ if repo and repo.ui != baseui: repo.ui.setconfig("web", o, val) - if opts.get('webdir_conf'): - app = hgwebdir_mod.hgwebdir(opts['webdir_conf'], baseui=ui) + o = opts.get('web_conf') or opts.get('webdir_conf') + if o: + app = hgwebdir_mod.hgwebdir(o, baseui=ui) elif repo is not None: app = hgweb_mod.hgweb(hg.repository(repo.ui, repo.root)) else: @@ -3851,8 +3852,10 @@ _('prefix path to serve from (default: server root)')), ('n', 'name', '', _('name to show in web pages (default: working directory)')), - ('', 'webdir-conf', '', _('name of the webdir config file' + ('', 'web-conf', '', _('name of the hgweb config file' ' (serve more than one repository)')), + ('', 'webdir-conf', '', _('name of the hgweb config file' + ' (DEPRECATED)')), ('', 'pid-file', '', _('name of file to write process ID to')), ('', 'stdio', None, _('for remote clients')), ('t', 'templates', '', _('web templates to use')),
--- a/tests/test-debugcomplete.out Mon Apr 26 11:03:40 2010 -0500 +++ b/tests/test-debugcomplete.out Mon Apr 26 11:03:40 2010 -0500 @@ -143,7 +143,7 @@ --traceback --verbose --version ---webdir-conf +--web-conf -6 -A -E @@ -176,7 +176,7 @@ pull: update, force, rev, branch, ssh, remotecmd push: force, rev, branch, ssh, remotecmd remove: after, force, include, exclude -serve: accesslog, daemon, daemon-pipefds, errorlog, port, address, prefix, name, webdir-conf, pid-file, stdio, templates, style, ipv6, certificate +serve: accesslog, daemon, daemon-pipefds, errorlog, port, address, prefix, name, web-conf, webdir-conf, pid-file, stdio, templates, style, ipv6, certificate status: all, modified, added, removed, deleted, clean, unknown, ignored, no-status, copies, print0, rev, change, include, exclude summary: remote update: clean, check, date, rev