Mercurial > hg
comparison mercurial/commands.py @ 4860:f3802f9f1840
Add SSL support to hg serve, activated via --certificate option
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Mon, 09 Jul 2007 22:12:28 -0700 |
parents | 2192001e4bb4 |
children | 6dc0094c0827 |
comparison
equal
deleted
inserted
replaced
4859:8c5aca855b5d | 4860:f3802f9f1840 |
---|---|
2462 s = sshserver.sshserver(ui, repo) | 2462 s = sshserver.sshserver(ui, repo) |
2463 s.serve_forever() | 2463 s.serve_forever() |
2464 | 2464 |
2465 parentui = ui.parentui or ui | 2465 parentui = ui.parentui or ui |
2466 optlist = ("name templates style address port ipv6" | 2466 optlist = ("name templates style address port ipv6" |
2467 " accesslog errorlog webdir_conf") | 2467 " accesslog errorlog webdir_conf certificate") |
2468 for o in optlist.split(): | 2468 for o in optlist.split(): |
2469 if opts[o]: | 2469 if opts[o]: |
2470 parentui.setconfig("web", o, str(opts[o])) | 2470 parentui.setconfig("web", o, str(opts[o])) |
2471 | 2471 |
2472 if repo is None and not ui.config("web", "webdir_conf"): | 2472 if repo is None and not ui.config("web", "webdir_conf"): |
3070 ' (serve more than one repo)')), | 3070 ' (serve more than one repo)')), |
3071 ('', 'pid-file', '', _('name of file to write process ID to')), | 3071 ('', 'pid-file', '', _('name of file to write process ID to')), |
3072 ('', 'stdio', None, _('for remote clients')), | 3072 ('', 'stdio', None, _('for remote clients')), |
3073 ('t', 'templates', '', _('web templates to use')), | 3073 ('t', 'templates', '', _('web templates to use')), |
3074 ('', 'style', '', _('template style to use')), | 3074 ('', 'style', '', _('template style to use')), |
3075 ('6', 'ipv6', None, _('use IPv6 in addition to IPv4'))], | 3075 ('6', 'ipv6', None, _('use IPv6 in addition to IPv4')), |
3076 ('', 'certificate', '', _('SSL certificate file'))], | |
3076 _('hg serve [OPTION]...')), | 3077 _('hg serve [OPTION]...')), |
3077 "^status|st": | 3078 "^status|st": |
3078 (status, | 3079 (status, |
3079 [('A', 'all', None, _('show status of all files')), | 3080 [('A', 'all', None, _('show status of all files')), |
3080 ('m', 'modified', None, _('show only modified files')), | 3081 ('m', 'modified', None, _('show only modified files')), |