diff -r bd3cb917761a -r 2406dbba49bd mercurial/commands.py --- a/mercurial/commands.py Fri Mar 31 23:00:41 2017 -0400 +++ b/mercurial/commands.py Sat Apr 15 18:05:40 2017 -0400 @@ -4619,7 +4619,8 @@ ('t', 'templates', '', _('web templates to use'), _('TEMPLATE')), ('', 'style', '', _('template style to use'), _('STYLE')), ('6', 'ipv6', None, _('use IPv6 in addition to IPv4')), - ('', 'certificate', '', _('SSL certificate file'), _('FILE'))], + ('', 'certificate', '', _('SSL certificate file'), _('FILE'))] + + subrepoopts, _('[OPTION]...'), optionalrepo=True) def serve(ui, repo, **opts):