Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 825:0108c602feb9
Add an option to hg serve to serve file using IPv6
author | Samuel Tardieu <sam@rfc1149.net> |
---|---|
date | Thu, 04 Aug 2005 13:21:27 -0800 |
parents | 0932bc2fb2be |
children | 16700cdd9055 |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Aug 02 08:57:32 2005 -0800 +++ b/mercurial/commands.py Thu Aug 04 13:21:27 2005 -0800 @@ -1002,7 +1002,7 @@ return default httpd = hgweb.create_server(repo.root, opts["name"], opts["templates"], - opts["address"], opts["port"], + opts["address"], opts["port"], opts["ipv6"], openlog('accesslog', sys.stdout), openlog('errorlog', sys.stderr)) if ui.verbose: @@ -1251,7 +1251,8 @@ ('a', 'address', '', 'interface address'), ('n', 'name', os.getcwd(), 'repository name'), ('', 'stdio', None, 'for remote clients'), - ('t', 'templates', "", 'template map')], + ('t', 'templates', "", 'template map'), + ('6', 'ipv6', None, 'use IPv6 in addition to IPv4')], "hg serve [OPTION]..."), "^status": (status, [('I', 'include', [], 'include path in search'),