# HG changeset patch # User Matt Mackall # Date 1272297820 18000 # Node ID aca9a7cf2c9add22177eaa91afd09bb673094615 # Parent b1739ebb9f3f0ef8b19c87e1ebd2a36aac980e1e serve: webdir_conf -> webconf diff -r b1739ebb9f3f -r aca9a7cf2c9a mercurial/commands.py --- 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')), diff -r b1739ebb9f3f -r aca9a7cf2c9a tests/test-debugcomplete.out --- 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