diff mercurial/commands.py @ 2122:9383ba6b069a

Added hgwebdir support to hg serve.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sun, 23 Apr 2006 00:31:09 +0200
parents 2b03c6733efa
children 27fd8b7a6c51
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Apr 23 00:27:46 2006 +0200
+++ b/mercurial/commands.py	Sun Apr 23 00:31:09 2006 +0200
@@ -2566,7 +2566,7 @@
                 r = repo.addchangegroup(fin)
                 respond(str(r))
 
-    optlist = "name templates style address port ipv6 accesslog errorlog"
+    optlist = "name templates style address port ipv6 accesslog errorlog webdir_conf"
     for o in optlist.split():
         if opts[o]:
             ui.setconfig("web", o, opts[o])
@@ -3127,6 +3127,7 @@
           ('a', 'address', '', _('address to use')),
           ('n', 'name', '',
            _('name to show in web pages (default: working dir)')),
+          ('D', 'webdir-conf', '', _('name of the webdir config file (serve more than one repo)')),
           ('', 'pid-file', '', _('name of file to write process ID to')),
           ('', 'stdio', None, _('for remote clients')),
           ('t', 'templates', '', _('web templates to use')),