[PATCH 07 of 10 ipv6 V2] tests: use LOCALIP
Yuya Nishihara
yuya at tcha.org
Sat Feb 18 06:44:30 EST 2017
On Fri, 17 Feb 2017 10:51:21 -0800, Jun Wu wrote:
> # HG changeset patch
> # User Jun Wu <quark at fb.com>
> # Date 1487266732 28800
> # Thu Feb 16 09:38:52 2017 -0800
> # Node ID 1ea3da89ecc44b59e96cb366e6388c1ac178d3af
> # Parent bb7f41b2c8043a3115f242fb9b9f71ee461c93a9
> # Available At https://bitbucket.org/quark-zju/hg-draft
> # hg pull https://bitbucket.org/quark-zju/hg-draft -r 1ea3da89ecc4
> tests: use LOCALIP
>
> This patch replaces hardcoded 127.0.0.1 with $LOCALIP in all tests.
>
> Till now, the IPv6 series should make tests pass on common IPv6 systems
> where the local device has the address "::1" and the hostname "localhost"
> resolves to "::1".
> - $ hg clone http://127.0.0.1:3121/a b
> + $ hg clone http://$LOCALIP:3121/a b
I'm a little surprised that "http://::1:3121/" just works thanks to ":3121".
Perhaps it's invalid and should be "http://[::1]:3121/".
More information about the Mercurial-devel
mailing list