Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 5835:bd34f0ac3cb0
adding "prefix" option to "hg serve" (command line and [web] section)
allows "hg serve" to serve from a different path than '/' (server root)
author | Michele Cella <michele.cella@gmail.com> |
---|---|
date | Wed, 09 Jan 2008 11:15:00 +0100 |
parents | 180a3eee4b75 |
children | a76395713691 |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Jan 08 21:12:30 2008 -0600 +++ b/mercurial/commands.py Wed Jan 09 11:15:00 2008 +0100 @@ -2393,7 +2393,7 @@ s.serve_forever() parentui = ui.parentui or ui - optlist = ("name templates style address port ipv6" + optlist = ("name templates style address port prefix ipv6" " accesslog errorlog webdir_conf certificate") for o in optlist.split(): if opts[o]: @@ -3024,6 +3024,7 @@ ('E', 'errorlog', '', _('name of error log file to write to')), ('p', 'port', 0, _('port to use (default: 8000)')), ('a', 'address', '', _('address to use')), + ('', 'prefix', '', _('prefix path to serve from (default: server root)')), ('n', 'name', '', _('name to show in web pages (default: working dir)')), ('', 'webdir-conf', '', _('name of the webdir config file'