comparison 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
comparison
equal deleted inserted replaced
2121:150cdd6c3c90 2122:9383ba6b069a
2564 respond("") 2564 respond("")
2565 2565
2566 r = repo.addchangegroup(fin) 2566 r = repo.addchangegroup(fin)
2567 respond(str(r)) 2567 respond(str(r))
2568 2568
2569 optlist = "name templates style address port ipv6 accesslog errorlog" 2569 optlist = "name templates style address port ipv6 accesslog errorlog webdir_conf"
2570 for o in optlist.split(): 2570 for o in optlist.split():
2571 if opts[o]: 2571 if opts[o]:
2572 ui.setconfig("web", o, opts[o]) 2572 ui.setconfig("web", o, opts[o])
2573 2573
2574 if opts['daemon'] and not opts['daemon_pipefds']: 2574 if opts['daemon'] and not opts['daemon_pipefds']:
3125 ('E', 'errorlog', '', _('name of error log file to write to')), 3125 ('E', 'errorlog', '', _('name of error log file to write to')),
3126 ('p', 'port', 0, _('port to use (default: 8000)')), 3126 ('p', 'port', 0, _('port to use (default: 8000)')),
3127 ('a', 'address', '', _('address to use')), 3127 ('a', 'address', '', _('address to use')),
3128 ('n', 'name', '', 3128 ('n', 'name', '',
3129 _('name to show in web pages (default: working dir)')), 3129 _('name to show in web pages (default: working dir)')),
3130 ('D', 'webdir-conf', '', _('name of the webdir config file (serve more than one repo)')),
3130 ('', 'pid-file', '', _('name of file to write process ID to')), 3131 ('', 'pid-file', '', _('name of file to write process ID to')),
3131 ('', 'stdio', None, _('for remote clients')), 3132 ('', 'stdio', None, _('for remote clients')),
3132 ('t', 'templates', '', _('web templates to use')), 3133 ('t', 'templates', '', _('web templates to use')),
3133 ('', 'style', '', _('template style to use')), 3134 ('', 'style', '', _('template style to use')),
3134 ('6', 'ipv6', None, _('use IPv6 in addition to IPv4'))], 3135 ('6', 'ipv6', None, _('use IPv6 in addition to IPv4'))],