[PATCH 07 of 10 ipv6 V2] tests: use LOCALIP

Martin von Zweigbergk martinvonz at google.com
Sun Feb 19 19:56:33 EST 2017


On Sun, Feb 19, 2017, 16:47 Augie Fackler <raf at durin42.com> wrote:

>
> > On Feb 19, 2017, at 7:45 PM, Martin von Zweigbergk <
> martinvonz at google.com> wrote:
> >
> > There are two pieces to this patch. One part is about using the variable
> in the tests. The other (which I actually moved here from patch 4/10) is
> about matching test output containing the address against the variable by
> name. How does it currently work (before this patch) that those FreeBSD
> systems can connect when 127.0.0.1 is hardcoded in the test (such as
> "get-with-headers.py 127.0.0.1:$HGPORT”)?
>
> The jail subsystem transparently swaps out the loopback IP with the valid
> IP for the jail, in our jail’s case a 172.16.18/24 IP. The connection
> works, but hg then prints out the replacement IP if it inspects the socket
> to see what it connected to.
>

Oh, I see. So how do we fix this? Make LOCALIP match anything, simply? Just
like 127.0.0.1 did after your patch.


> >
> > On Feb 19, 2017 15:32, "Augie Fackler" <raf at durin42.com> wrote:
> > On Fri, Feb 17, 2017 at 10:51:21AM -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.
> >
> > This shouldn't have been required or done: 127.0.0.1 is a glob
> > already[0], and this change is (I think) at fault for new failures on
> > the freebsd builder[1].
> >
> > Can we figure out an approach that doesn't break the FreeBSD build?
> >
> > Thanks!
> > Augie
> >
> > 0: https://www.mercurial-scm.org/repo/hg/rev/348b2b9da703
> > 1:
> https://buildbot.mercurial-scm.org/builders/FreeBSD%20hg%20tests/builds/487/steps/run-tests.py%20%28python%202.7.10%29/logs/stdio
> >
> > >
> > > 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".
> > >
> > > diff --git a/tests/test-archive.t b/tests/test-archive.t
> > > --- a/tests/test-archive.t
> > > +++ b/tests/test-archive.t
> > > @@ -100,5 +100,5 @@ invalid arch type should give 404
> > >    >     stdout = sys.stdout
> > >    > try:
> > > -  >     f = util.urlreq.urlopen('http://127.0.0.1:%s/?%s'
> > > +  >     f = util.urlreq.urlopen('http://$LOCALIP:%s/?%s'
> > >    >                     % (os.environ['HGPORT'], requeststr))
> > >    >     stdout.write(f.read())
> > > diff --git a/tests/test-bundle2-exchange.t
> b/tests/test-bundle2-exchange.t
> > > --- a/tests/test-bundle2-exchange.t
> > > +++ b/tests/test-bundle2-exchange.t
> > > @@ -341,5 +341,5 @@ push over ssh
> > >    remote: wlock: free
> > >    remote: postclose-tip:5fddd98957c8 draft book_5fdd
> > > -  remote: txnclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2=1
> HG_NEW_OBSMARKERS=1 HG_NODE=5fddd98957c8a54a4d436dfe1da9d87f21a1b97b
> HG_NODE_LAST=5fddd98957c8a54a4d436dfe1da9d87f21a1b97b HG_SOURCE=serve
> HG_TXNID=TXN:* HG_TXNNAME=serve HG_URL=remote:ssh:127.0.0.1 (glob)
> > > +  remote: txnclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2=1
> HG_NEW_OBSMARKERS=1 HG_NODE=5fddd98957c8a54a4d436dfe1da9d87f21a1b97b
> HG_NODE_LAST=5fddd98957c8a54a4d436dfe1da9d87f21a1b97b HG_SOURCE=serve
> HG_TXNID=TXN:* HG_TXNNAME=serve HG_URL=remote:ssh:$LOCALIP (glob)
> > >    updating bookmark book_5fdd
> > >    pre-close-tip:02de42196ebe draft book_02de
> > > @@ -395,5 +395,5 @@ push over http
> > >    remote: wlock: free
> > >    remote: postclose-tip:32af7686d403 public book_32af
> > > -  remote: txnclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2=1
> HG_NEW_OBSMARKERS=1 HG_NODE=32af7686d403cf45b5d95f2d70cebea587ac806a
> HG_NODE_LAST=32af7686d403cf45b5d95f2d70cebea587ac806a HG_PHASES_MOVED=1
> HG_SOURCE=serve HG_TXNID=TXN:* HG_TXNNAME=serve HG_URL=remote:http:
> 127.0.0.1: (glob)
> > > +  remote: txnclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2=1
> HG_NEW_OBSMARKERS=1 HG_NODE=32af7686d403cf45b5d95f2d70cebea587ac806a
> HG_NODE_LAST=32af7686d403cf45b5d95f2d70cebea587ac806a HG_PHASES_MOVED=1
> HG_SOURCE=serve HG_TXNID=TXN:* HG_TXNNAME=serve HG_URL=remote:http:*: (glob)
> > >    updating bookmark book_32af
> > >    pre-close-tip:02de42196ebe draft book_02de
> > > diff --git a/tests/test-clone.t b/tests/test-clone.t
> > > --- a/tests/test-clone.t
> > > +++ b/tests/test-clone.t
> > > @@ -580,9 +580,9 @@ No remote source
> > >
> > >  #if windows
> > > -  $ hg clone http://127.0.0.1:3121/a b
> > > +  $ hg clone http://$LOCALIP:3121/a b
> > >    abort: error: * (glob)
> > >    [255]
> > >  #else
> > > -  $ hg clone http://127.0.0.1:3121/a b
> > > +  $ hg clone http://$LOCALIP:3121/a b
> > >    abort: error: *refused* (glob)
> > >    [255]
> > > diff --git a/tests/test-help.t b/tests/test-help.t
> > > --- a/tests/test-help.t
> > > +++ b/tests/test-help.t
> > > @@ -1793,5 +1793,5 @@ Dish up an empty repo; serve it cold.
> > >    $ cat hg.pid >> $DAEMON_PIDS
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT "help"
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT "help"
> > >    200 Script output follows
> > >
> > > @@ -2362,5 +2362,5 @@ Dish up an empty repo; serve it cold.
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT "help/add"
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT "help/add"
> > >    200 Script output follows
> > >
> > > @@ -2536,5 +2536,5 @@ Dish up an empty repo; serve it cold.
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT "help/remove"
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT "help/remove"
> > >    200 Script output follows
> > >
> > > @@ -2731,5 +2731,5 @@ Dish up an empty repo; serve it cold.
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT "help/dates"
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT "help/dates"
> > >    200 Script output follows
> > >
> > > @@ -2838,5 +2838,5 @@ Dish up an empty repo; serve it cold.
> > >  Sub-topic indexes rendered properly
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT "help/internals"
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT "help/internals"
> > >    200 Script output follows
> > >
> > > @@ -2934,5 +2934,5 @@ Sub-topic indexes rendered properly
> > >  Sub-topic topics rendered properly
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> "help/internals.changegroups"
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT "help/internals.changegroups"
> > >    200 Script output follows
> > >
> > > diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t
> > > --- a/tests/test-hgweb-commands.t
> > > +++ b/tests/test-hgweb-commands.t
> > > @@ -59,5 +59,5 @@ Set up the repo
> > >  Logs and changes
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'log/?style=atom'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'log/?style=atom'
> > >    200 Script output follows
> > >
> > > @@ -245,5 +245,5 @@ Logs and changes
> > >
> > >    </feed>
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'log/?style=rss'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'log/?style=rss'
> > >    200 Script output follows
> > >
> > > @@ -423,5 +423,5 @@ Logs and changes
> > >      </channel>
> > >    </rss> (no-eol)
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/?style=atom'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'log/1/?style=atom'
> > >    200 Script output follows
> > >
> > > @@ -523,5 +523,5 @@ Logs and changes
> > >
> > >    </feed>
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/?style=rss'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'log/1/?style=rss'
> > >    200 Script output follows
> > >
> > > @@ -619,5 +619,5 @@ Logs and changes
> > >      </channel>
> > >    </rss> (no-eol)
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/foo/?style=atom'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'log/1/foo/?style=atom'
> > >    200 Script output follows
> > >
> > > @@ -674,5 +674,5 @@ Logs and changes
> > >
> > >    </feed>
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/foo/?style=rss'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'log/1/foo/?style=rss'
> > >    200 Script output follows
> > >
> > > @@ -695,5 +695,5 @@ Logs and changes
> > >      </channel>
> > >    </rss>
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'shortlog/'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'shortlog/'
> > >    200 Script output follows
> > >
> > > @@ -835,5 +835,5 @@ Logs and changes
> > >    </html>
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'rev/0/'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'rev/0/'
> > >    200 Script output follows
> > >
> > > @@ -966,5 +966,5 @@ Logs and changes
> > >    </html>
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'rev/1/?style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'rev/1/?style=raw'
> > >    200 Script output follows
> > >
> > > @@ -983,5 +983,5 @@ Logs and changes
> > >    +2ef0ac749a14e4f57a5a822464a0902c6f7f448f 1.0
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'log?rev=base'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=base'
> > >    200 Script output follows
> > >
> > > @@ -1072,10 +1072,10 @@ Logs and changes
> > >    </html>
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'log?rev=stable&style=raw'
> | grep 'revision:'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=stable&style=raw' |
> grep 'revision:'
> > >    revision:    2
> > >
> > >  Search with revset syntax
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'log?rev=tip^&style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=tip^&style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1094,5 +1094,5 @@ Search with revset syntax
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> 'log?rev=last(all(),2)^&style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT
> 'log?rev=last(all(),2)^&style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1118,5 +1118,5 @@ Search with revset syntax
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> 'log?rev=last(all(,2)^&style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT
> 'log?rev=last(all(,2)^&style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1128,5 +1128,5 @@ Search with revset syntax
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> 'log?rev=last(al(),2)^&style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT
> 'log?rev=last(al(),2)^&style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1138,5 +1138,5 @@ Search with revset syntax
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> 'log?rev=bookmark(anotherthing)&style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT
> 'log?rev=bookmark(anotherthing)&style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1156,5 +1156,5 @@ Search with revset syntax
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> 'log?rev=bookmark(abc)&style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT
> 'log?rev=bookmark(abc)&style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1166,5 +1166,5 @@ Search with revset syntax
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> 'log?rev=deadbeef:&style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=deadbeef:&style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1177,5 +1177,5 @@ Search with revset syntax
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> 'log?rev=user("test")&style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT
> 'log?rev=user("test")&style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1218,5 +1218,5 @@ Search with revset syntax
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> 'log?rev=user("re:test")&style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT
> 'log?rev=user("re:test")&style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1231,9 +1231,9 @@ Search with revset syntax
> > >  File-related
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'file/1/foo/?style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'file/1/foo/?style=raw'
> > >    200 Script output follows
> > >
> > >    foo
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'annotate/1/foo/?style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'annotate/1/foo/?style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1244,5 +1244,5 @@ File-related
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'file/1/?style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'file/1/?style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1260,5 +1260,5 @@ File-related
> > >    2ef0ac749a14
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'file/1/foo'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'file/1/foo'
> > >    200 Script output follows
> > >
> > > @@ -1355,5 +1355,5 @@ File-related
> > >    </html>
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'filediff/0/foo/?style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'filediff/0/foo/?style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1369,5 +1369,5 @@ File-related
> > >
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'filediff/1/foo/?style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'filediff/1/foo/?style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1385,5 +1385,5 @@ File-related
> > >    2ef0ac749a14
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'file/2/foo'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'file/2/foo'
> > >    200 Script output follows
> > >
> > > @@ -1484,10 +1484,10 @@ File-related
> > >  Overviews
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'raw-tags'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'raw-tags'
> > >    200 Script output follows
> > >
> > >    tip        cad8025a2e87f88c06259790adfa15acb4080123
> > >    1.0        2ef0ac749a14e4f57a5a822464a0902c6f7f448f
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'raw-branches'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'raw-branches'
> > >    200 Script output follows
> > >
> > > @@ -1495,10 +1495,10 @@ Overviews
> > >    stable     1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe        inactive
> > >    default    a4f92ed23982be056b9852de5dfe873eaac7f0de        inactive
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'raw-bookmarks'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'raw-bookmarks'
> > >    200 Script output follows
> > >
> > >    something  cad8025a2e87f88c06259790adfa15acb4080123
> > >    anotherthing       2ef0ac749a14e4f57a5a822464a0902c6f7f448f
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'summary/?style=gitweb'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'summary/?style=gitweb'
> > >    200 Script output follows
> > >
> > > @@ -1698,5 +1698,5 @@ Overviews
> > >    </html>
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'graph/?style=gitweb'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'graph/?style=gitweb'
> > >    200 Script output follows
> > >
> > > @@ -1844,5 +1844,5 @@ Overviews
> > >  raw graph
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'graph/?style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'graph/?style=raw'
> > >    200 Script output follows
> > >
> > > @@ -1894,5 +1894,5 @@ raw graph
> > >  capabilities
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities'; echo
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities'; echo
> > >    200 Script output follows
> > >
> > > @@ -1901,5 +1901,5 @@ capabilities
> > >  heads
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=heads'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=heads'
> > >    200 Script output follows
> > >
> > > @@ -1908,5 +1908,5 @@ heads
> > >  branches
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> '?cmd=branches&nodes=0000000000000000000000000000000000000000'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT
> '?cmd=branches&nodes=0000000000000000000000000000000000000000'
> > >    200 Script output follows
> > >
> > > @@ -1915,5 +1915,5 @@ branches
> > >  changegroup
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> '?cmd=changegroup&roots=0000000000000000000000000000000000000000'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT
> '?cmd=changegroup&roots=0000000000000000000000000000000000000000'
> > >    200 Script output follows
> > >
> > > @@ -1926,5 +1926,5 @@ changegroup
> > >  stream_out
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=stream_out'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=stream_out'
> > >    200 Script output follows
> > >
> > > @@ -1933,5 +1933,5 @@ stream_out
> > >  failing unbundle, requires POST request
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=unbundle'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=unbundle'
> > >    405 push requires POST request
> > >
> > > @@ -1942,5 +1942,5 @@ failing unbundle, requires POST request
> > >  Static files
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'static/style.css'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'static/style.css'
> > >    200 Script output follows
> > >
> > > @@ -2078,5 +2078,5 @@ repository root. (issue4568)
> > >    $ cat hg.pid >> $DAEMON_PIDS
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT
> 'log?rev=adds("foo")&style=raw'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT
> 'log?rev=adds("foo")&style=raw'
> > >    200 Script output follows
> > >
> > > @@ -2111,5 +2111,5 @@ commit message with Japanese Kanji 'Noh'
> > >  Graph json escape of multibyte character
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'graph/' > out
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'graph/' > out
> > >    >>> from __future__ import print_function
> > >    >>> for line in open("out"):
> > > @@ -2122,5 +2122,5 @@ capabilities
> > >  (plain version to check the format)
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities' | dd
> ibs=75 count=1 2> /dev/null; echo
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' | dd
> ibs=75 count=1 2> /dev/null; echo
> > >    200 Script output follows
> > >
> > > @@ -2129,5 +2129,5 @@ capabilities
> > >  (spread version to check the content)
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities' | tr '
> ' '\n'; echo
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' | tr ' '
> '\n'; echo
> > >    200
> > >    Script
> > > @@ -2195,10 +2195,10 @@ Test graph paging
> > >  Test paging
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT \
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT \
> > >    >   'graph/?style=raw' | grep changeset
> > >    changeset:   aed2d9c1d0e7
> > >    changeset:   b60a39a85a01
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT \
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT \
> > >    >   'graph/?style=raw&revcount=3' | grep changeset
> > >    changeset:   aed2d9c1d0e7
> > > @@ -2206,10 +2206,10 @@ Test paging
> > >    changeset:   ada793dcc118
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT \
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT \
> > >    >   'graph/e06180cbfb0?style=raw&revcount=3' | grep changeset
> > >    changeset:   e06180cbfb0c
> > >    changeset:   b4e73ffab476
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT \
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT \
> > >    >   'graph/b4e73ffab47?style=raw&revcount=3' | grep changeset
> > >    changeset:   b4e73ffab476
> > > diff --git a/tests/test-hgweb-descend-empties.t
> b/tests/test-hgweb-descend-empties.t
> > > --- a/tests/test-hgweb-descend-empties.t
> > > +++ b/tests/test-hgweb-descend-empties.t
> > > @@ -30,5 +30,5 @@ Set up the repo
> > >  manifest with descending (paper)
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'file'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'file'
> > >    200 Script output follows
> > >
> > > @@ -148,5 +148,5 @@ manifest with descending (paper)
> > >  manifest with descending (coal)
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'file?style=coal'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'file?style=coal'
> > >    200 Script output follows
> > >
> > > @@ -267,5 +267,5 @@ manifest with descending (coal)
> > >  manifest with descending (monoblue)
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'file?style=monoblue'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'file?style=monoblue'
> > >    200 Script output follows
> > >
> > > @@ -380,5 +380,5 @@ manifest with descending (monoblue)
> > >  manifest with descending (gitweb)
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'file?style=gitweb'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'file?style=gitweb'
> > >    200 Script output follows
> > >
> > > @@ -483,5 +483,5 @@ manifest with descending (gitweb)
> > >  manifest with descending (spartan)
> > >
> > > -  $ get-with-headers.py 127.0.0.1:$HGPORT 'file?style=spartan'
> > > +  $ get-with-headers.py $LOCALIP:$HGPORT 'file?style=spartan'
> > >    200 Script output follows
> > >
> > > diff --git a/tests/test-hgweb-no-path-info.t
> b/tests/test-hgweb-no-path-info.t
> > > --- a/tests/test-hgweb-no-path-info.t
> > > +++ b/tests/test-hgweb-no-path-info.t
> > > @@ -50,5 +50,5 @@ should be used from d74fc8dec2b4 onward
> > >    >     'PATH_INFO': '/',
> > >    >     'SCRIPT_NAME': '',
> > > -  >     'SERVER_NAME': '127.0.0.1',
> > > +  >     'SERVER_NAME': '$LOCALIP',
> > >    >     'SERVER_PORT': os.environ['HGPORT'],
> > >    >     'SERVER_PROTOCOL': 'HTTP/1.0'
> > > @@ -80,7 +80,7 @@ should be used from d74fc8dec2b4 onward
> > >    <feed xmlns="http://www.w3.org/2005/Atom">
> > >     <!-- Changelog -->
> > > -   <id>http://127.0.0.1:$HGPORT/</id> (glob)
> > > -   <link rel="self" href="http://127.0.0.1:$HGPORT/atom-log"/> (glob)
> > > -   <link rel="alternate" href="http://127.0.0.1:$HGPORT/"/> (glob)
> > > +   <id>http://$LOCALIP:$HGPORT/</id> (glob)
> > > +   <link rel="self" href="http://$LOCALIP:$HGPORT/atom-log"/> (glob)
> > > +   <link rel="alternate" href="http://$LOCALIP:$HGPORT/"/> (glob)
> > >     <title>repo Changelog</title>
> > >     <updated>1970-01-01T00:00:00+00:00</updated>
> > > @@ -88,6 +88,6 @@ should be used from d74fc8dec2b4 onward
> > >     <entry>
> > >      <title>[default] test</title>
> > > -    <id>http://127.0.0.1:$HGPORT/#changeset-61c9426e69fef294feed5e2bbfc97d39944a5b1c</id>
> (glob)
> > > -    <link href="http://127.0.0.1:$HGPORT/rev/61c9426e69fe"/> (glob)
> > > +    <id>http://$LOCALIP:$HGPORT/#changeset-61c9426e69fef294feed5e2bbfc97d39944a5b1c</id>
> (glob)
> > > +    <link href="http://$LOCALIP:$HGPORT/rev/61c9426e69fe"/> (glob)
> > >      <author>
> > >       <name>test</name>
> > > diff --git a/tests/test-hgweb-no-request-uri.t
> b/tests/test-hgweb-no-request-uri.t
> > > --- a/tests/test-hgweb-no-request-uri.t
> > > +++ b/tests/test-hgweb-no-request-uri.t
> > > @@ -49,5 +49,5 @@ should be used from d74fc8dec2b4 onward
> > >    >     'REQUEST_METHOD': 'GET',
> > >    >     'SCRIPT_NAME': '',
> > > -  >     'SERVER_NAME': '127.0.0.1',
> > > +  >     'SERVER_NAME': '$LOCALIP',
> > >    >     'SERVER_PORT': os.environ['HGPORT'],
> > >    >     'SERVER_PROTOCOL': 'HTTP/1.0'
> > > @@ -91,7 +91,7 @@ should be used from d74fc8dec2b4 onward
> > >    <feed xmlns="http://www.w3.org/2005/Atom">
> > >     <!-- Changelog -->
> > > -   <id>http://127.0.0.1:$HGPORT/</id> (glob)
> > > -   <link rel="self" href="http://127.0.0.1:$HGPORT/atom-log"/> (glob)
> > > -   <link rel="alternate" href="http://127.0.0.1:$HGPORT/"/> (glob)
> > > +   <id>http://$LOCALIP:$HGPORT/</id> (glob)
> > > +   <link rel="self" href="http://$LOCALIP:$HGPORT/atom-log"/> (glob)
> > > +   <link rel="alternate" href="http://$LOCALIP:$HGPORT/"/> (glob)
> > >     <title>repo Changelog</title>
> > >     <updated>1970-01-01T00:00:00+00:00</updated>
> > > @@ -99,6 +99,6 @@ should be used from d74fc8dec2b4 onward
> > >     <entry>
> > >      <title>[default] test</title>
> > > -    <id>http://127.0.0.1:$HGPORT/#changeset-61c9426e69fef294feed5e2bbfc97d39944a5b1c</id>
> (glob)
> > > -    <link href="http://127.0.0.1:$HGPORT/rev/61c9426e69fe"/> (glob)
> > > +    <id>http://$LOCALIP:$HGPORT/#changeset-61c9426e69fef294feed5e2bbfc97d39944a5b1c</id>
> (glob)
> > > +    <link href="http://$LOCALIP:$HGPORT/rev/61c9426e69fe"/> (glob)
> > >      <author>
> > >       <name>test</name>
> > > diff --git a/tests/test-hgweb-non-interactive.t
> b/tests/test-hgweb-non-interactive.t
> > > --- a/tests/test-hgweb-non-interactive.t
> > > +++ b/tests/test-hgweb-non-interactive.t
> > > @@ -61,5 +61,5 @@ by the WSGI standard and strictly implem
> > >    >     'PATH_INFO': '',
> > >    >     'QUERY_STRING': '',
> > > -  >     'SERVER_NAME': '127.0.0.1',
> > > +  >     'SERVER_NAME': '$LOCALIP',
> > >    >     'SERVER_PORT': os.environ['HGPORT'],
> > >    >     'SERVER_PROTOCOL': 'HTTP/1.0'
> > > diff --git a/tests/test-hgweb-raw.t b/tests/test-hgweb-raw.t
> > > --- a/tests/test-hgweb-raw.t
> > > +++ b/tests/test-hgweb-raw.t
> > > @@ -33,5 +33,5 @@ Test raw style of hgweb
> > >    care about things like that.
> > >    $ cat access.log error.log
> > > -  127.0.0.1 - - [*] "GET
> /?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw HTTP/1.1" 200 -
> (glob)
> > > +  $LOCALIP - - [*] "GET
> /?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw HTTP/1.1" 200 -
> (glob)
> > >
> > >    $ rm access.log error.log
> > > @@ -54,5 +54,5 @@ Test raw style of hgweb
> > >    care about things like that.
> > >    $ cat access.log error.log
> > > -  127.0.0.1 - - [*] "GET
> /?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw HTTP/1.1" 200 -
> (glob)
> > > +  $LOCALIP - - [*] "GET
> /?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw HTTP/1.1" 200 -
> (glob)
> > >
> > >    $ cd ..
> > > diff --git a/tests/test-hgweb-symrev.t b/tests/test-hgweb-symrev.t
> > > --- a/tests/test-hgweb-symrev.t
> > > +++ b/tests/test-hgweb-symrev.t
> > > @@ -38,5 +38,5 @@ Set up the repo
> > >  (De)referencing symbolic revisions (paper)
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog?style=paper' | egrep $REVLINKS
> > >    <li><a href="/graph/tip?style=paper">graph</a></li>
> > >    <li><a href="/rev/tip?style=paper">changeset</a></li>
> > > @@ -53,5 +53,5 @@ Set up the repo
> > >    | rev 2: <a href="/shortlog/43c799df6e75?style=paper">(0)</a> <a
> href="/shortlog/tip?style=paper">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'graph?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'graph?style=paper' | egrep $REVLINKS
> > >    <li><a href="/shortlog/tip?style=paper">log</a></li>
> > >    <li><a href="/rev/tip?style=paper">changeset</a></li>
> > > @@ -64,5 +64,5 @@ Set up the repo
> > >    | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a
> href="/graph/tip?style=paper">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file?style=paper' | egrep $REVLINKS
> > >    <li><a href="/shortlog/tip?style=paper">log</a></li>
> > >    <li><a href="/graph/tip?style=paper">graph</a></li>
> > > @@ -75,22 +75,22 @@ Set up the repo
> > >    <a href="/file/tip/foo?style=paper">
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'branches?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'branches?style=paper' | egrep $REVLINKS
> > >    <a href="/shortlog/default?style=paper" class="open">
> > >    <a href="/shortlog/9d8c40cba617?style=paper" class="open">
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'tags?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'tags?style=paper' | egrep $REVLINKS
> > >    <a href="/rev/tip?style=paper">
> > >    <a href="/rev/9d8c40cba617?style=paper">
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'bookmarks?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'bookmarks?style=paper' | egrep $REVLINKS
> > >    <a href="/rev/xyzzy?style=paper">
> > >    <a href="/rev/a7c1559b7bba?style=paper">
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog?style=paper&rev=all()' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog?style=paper&rev=all()' | egrep $REVLINKS
> > >       <a href="/rev/9d8c40cba617?style=paper">third</a>
> > >       <a href="/rev/a7c1559b7bba?style=paper">second</a>
> > >       <a href="/rev/43c799df6e75?style=paper">first</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'rev/xyzzy?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'rev/xyzzy?style=paper' | egrep $REVLINKS
> > >     <li><a href="/shortlog/xyzzy?style=paper">log</a></li>
> > >     <li><a href="/graph/xyzzy?style=paper">graph</a></li>
> > > @@ -103,5 +103,5 @@ Set up the repo
> > >     <td class="files"><a
> href="/file/a7c1559b7bba/foo?style=paper">foo</a> </td>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog/xyzzy?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog/xyzzy?style=paper' | egrep $REVLINKS
> > >    <li><a href="/graph/xyzzy?style=paper">graph</a></li>
> > >    <li><a href="/rev/xyzzy?style=paper">changeset</a></li>
> > > @@ -117,5 +117,5 @@ Set up the repo
> > >    | rev 1: <a href="/shortlog/43c799df6e75?style=paper">(0)</a> <a
> href="/shortlog/tip?style=paper">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'graph/xyzzy?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'graph/xyzzy?style=paper' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=paper">log</a></li>
> > >    <li><a href="/rev/xyzzy?style=paper">changeset</a></li>
> > > @@ -128,5 +128,5 @@ Set up the repo
> > >    | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a
> href="/graph/tip?style=paper">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file/xyzzy?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file/xyzzy?style=paper' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=paper">log</a></li>
> > >    <li><a href="/graph/xyzzy?style=paper">graph</a></li>
> > > @@ -139,5 +139,5 @@ Set up the repo
> > >    <a href="/file/xyzzy/foo?style=paper">
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file/xyzzy/foo?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file/xyzzy/foo?style=paper' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=paper">log</a></li>
> > >    <li><a href="/graph/xyzzy?style=paper">graph</a></li>
> > > @@ -154,5 +154,5 @@ Set up the repo
> > >     <td class="author"><a
> href="/file/9d8c40cba617/foo?style=paper">9d8c40cba617</a> </td>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'log/xyzzy/foo?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'log/xyzzy/foo?style=paper' | egrep $REVLINKS
> > >       href="/atom-log/tip/foo" title="Atom feed for test:foo" />
> > >       href="/rss-log/tip/foo" title="RSS feed for test:foo" />
> > > @@ -177,5 +177,5 @@ Set up the repo
> > >    | <a href="/log/43c799df6e75/foo?style=paper">(0)</a> <a
> href="/log/tip/foo?style=paper">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'annotate/xyzzy/foo?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'annotate/xyzzy/foo?style=paper' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=paper">log</a></li>
> > >    <li><a href="/graph/xyzzy?style=paper">graph</a></li>
> > > @@ -201,5 +201,5 @@ Set up the repo
> > >    <a href="/rev/a7c1559b7bba?style=paper">changeset</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'diff/xyzzy/foo?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'diff/xyzzy/foo?style=paper' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=paper">log</a></li>
> > >    <li><a href="/graph/xyzzy?style=paper">graph</a></li>
> > > @@ -216,5 +216,5 @@ Set up the repo
> > >     <td><a href="/file/9d8c40cba617/foo?style=paper">9d8c40cba617</a>
> </td>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'comparison/xyzzy/foo?style=paper' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'comparison/xyzzy/foo?style=paper' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=paper">log</a></li>
> > >    <li><a href="/graph/xyzzy?style=paper">graph</a></li>
> > > @@ -233,5 +233,5 @@ Set up the repo
> > >  (De)referencing symbolic revisions (coal)
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog?style=coal' | egrep $REVLINKS
> > >    <li><a href="/graph/tip?style=coal">graph</a></li>
> > >    <li><a href="/rev/tip?style=coal">changeset</a></li>
> > > @@ -248,5 +248,5 @@ Set up the repo
> > >    | rev 2: <a href="/shortlog/43c799df6e75?style=coal">(0)</a> <a
> href="/shortlog/tip?style=coal">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'graph?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'graph?style=coal' | egrep $REVLINKS
> > >    <li><a href="/shortlog/tip?style=coal">log</a></li>
> > >    <li><a href="/rev/tip?style=coal">changeset</a></li>
> > > @@ -259,5 +259,5 @@ Set up the repo
> > >    | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a
> href="/graph/tip?style=coal">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'file?style=coal'
> | egrep $REVLINKS
> > >    <li><a href="/shortlog/tip?style=coal">log</a></li>
> > >    <li><a href="/graph/tip?style=coal">graph</a></li>
> > > @@ -270,22 +270,22 @@ Set up the repo
> > >    <a href="/file/tip/foo?style=coal">
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'branches?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'branches?style=coal' | egrep $REVLINKS
> > >    <a href="/shortlog/default?style=coal" class="open">
> > >    <a href="/shortlog/9d8c40cba617?style=coal" class="open">
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'tags?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'tags?style=coal'
> | egrep $REVLINKS
> > >    <a href="/rev/tip?style=coal">
> > >    <a href="/rev/9d8c40cba617?style=coal">
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'bookmarks?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'bookmarks?style=coal' | egrep $REVLINKS
> > >    <a href="/rev/xyzzy?style=coal">
> > >    <a href="/rev/a7c1559b7bba?style=coal">
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog?style=coal&rev=all()' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog?style=coal&rev=all()' | egrep $REVLINKS
> > >       <a href="/rev/9d8c40cba617?style=coal">third</a>
> > >       <a href="/rev/a7c1559b7bba?style=coal">second</a>
> > >       <a href="/rev/43c799df6e75?style=coal">first</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'rev/xyzzy?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'rev/xyzzy?style=coal' | egrep $REVLINKS
> > >     <li><a href="/shortlog/xyzzy?style=coal">log</a></li>
> > >     <li><a href="/graph/xyzzy?style=coal">graph</a></li>
> > > @@ -298,5 +298,5 @@ Set up the repo
> > >     <td class="files"><a
> href="/file/a7c1559b7bba/foo?style=coal">foo</a> </td>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog/xyzzy?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog/xyzzy?style=coal' | egrep $REVLINKS
> > >    <li><a href="/graph/xyzzy?style=coal">graph</a></li>
> > >    <li><a href="/rev/xyzzy?style=coal">changeset</a></li>
> > > @@ -312,5 +312,5 @@ Set up the repo
> > >    | rev 1: <a href="/shortlog/43c799df6e75?style=coal">(0)</a> <a
> href="/shortlog/tip?style=coal">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'graph/xyzzy?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'graph/xyzzy?style=coal' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=coal">log</a></li>
> > >    <li><a href="/rev/xyzzy?style=coal">changeset</a></li>
> > > @@ -323,5 +323,5 @@ Set up the repo
> > >    | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a
> href="/graph/tip?style=coal">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file/xyzzy?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file/xyzzy?style=coal' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=coal">log</a></li>
> > >    <li><a href="/graph/xyzzy?style=coal">graph</a></li>
> > > @@ -334,5 +334,5 @@ Set up the repo
> > >    <a href="/file/xyzzy/foo?style=coal">
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file/xyzzy/foo?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file/xyzzy/foo?style=coal' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=coal">log</a></li>
> > >    <li><a href="/graph/xyzzy?style=coal">graph</a></li>
> > > @@ -349,5 +349,5 @@ Set up the repo
> > >     <td class="author"><a
> href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'log/xyzzy/foo?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'log/xyzzy/foo?style=coal' | egrep $REVLINKS
> > >       href="/atom-log/tip/foo" title="Atom feed for test:foo" />
> > >       href="/rss-log/tip/foo" title="RSS feed for test:foo" />
> > > @@ -372,5 +372,5 @@ Set up the repo
> > >    | <a href="/log/43c799df6e75/foo?style=coal">(0)</a> <a
> href="/log/tip/foo?style=coal">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'annotate/xyzzy/foo?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'annotate/xyzzy/foo?style=coal' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=coal">log</a></li>
> > >    <li><a href="/graph/xyzzy?style=coal">graph</a></li>
> > > @@ -396,5 +396,5 @@ Set up the repo
> > >    <a href="/rev/a7c1559b7bba?style=coal">changeset</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'diff/xyzzy/foo?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'diff/xyzzy/foo?style=coal' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=coal">log</a></li>
> > >    <li><a href="/graph/xyzzy?style=coal">graph</a></li>
> > > @@ -411,5 +411,5 @@ Set up the repo
> > >     <td><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a>
> </td>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'comparison/xyzzy/foo?style=coal' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'comparison/xyzzy/foo?style=coal' | egrep $REVLINKS
> > >    <li><a href="/shortlog/xyzzy?style=coal">log</a></li>
> > >    <li><a href="/graph/xyzzy?style=coal">graph</a></li>
> > > @@ -428,5 +428,5 @@ Set up the repo
> > >  (De)referencing symbolic revisions (gitweb)
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'summary?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'summary?style=gitweb' | egrep $REVLINKS
> > >    <a href="/file?style=gitweb">files</a> | <a
> href="/archive/tip.zip">zip</a>  |
> > >    <a class="list" href="/rev/9d8c40cba617?style=gitweb">
> > > @@ -448,5 +448,5 @@ Set up the repo
> > >    <a href="/file/9d8c40cba617?style=gitweb">files</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog?style=gitweb' | egrep $REVLINKS
> > >    <a href="/log/tip?style=gitweb">changelog</a> |
> > >    <a href="/graph/tip?style=gitweb">graph</a> |
> > > @@ -464,5 +464,5 @@ Set up the repo
> > >    <a href="/shortlog/43c799df6e75?style=gitweb">(0)</a> <a
> href="/shortlog/tip?style=gitweb">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'log?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'log?style=gitweb' | egrep $REVLINKS
> > >    <a href="/shortlog/tip?style=gitweb">shortlog</a> |
> > >    <a href="/graph/tip?style=gitweb">graph</a> |
> > > @@ -477,5 +477,5 @@ Set up the repo
> > >    <a href="/log/43c799df6e75?style=gitweb">(0)</a>  <a
> href="/log/tip?style=gitweb">tip</a> <br/>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'graph?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'graph?style=gitweb' | egrep $REVLINKS
> > >    <a href="/shortlog/tip?style=gitweb">shortlog</a> |
> > >    <a href="/log/tip?style=gitweb">changelog</a> |
> > > @@ -488,5 +488,5 @@ Set up the repo
> > >    | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a
> href="/graph/tip?style=gitweb">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'tags?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'tags?style=gitweb' | egrep $REVLINKS
> > >    <td><a class="list" href="/rev/tip?style=gitweb"><b>tip</b></a></td>
> > >    <a href="/rev/9d8c40cba617?style=gitweb">changeset</a> |
> > > @@ -494,5 +494,5 @@ Set up the repo
> > >    <a href="/file/9d8c40cba617?style=gitweb">files</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'bookmarks?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'bookmarks?style=gitweb' | egrep $REVLINKS
> > >    <td><a class="list"
> href="/rev/xyzzy?style=gitweb"><b>xyzzy</b></a></td>
> > >    <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a> |
> > > @@ -500,5 +500,5 @@ Set up the repo
> > >    <a href="/file/a7c1559b7bba?style=gitweb">files</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'branches?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'branches?style=gitweb' | egrep $REVLINKS
> > >    <td class="open"><a class="list"
> href="/shortlog/default?style=gitweb"><b>default</b></a></td>
> > >    <a href="/changeset/9d8c40cba617?style=gitweb">changeset</a> |
> > > @@ -506,5 +506,5 @@ Set up the repo
> > >    <a href="/file/9d8c40cba617?style=gitweb">files</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file?style=gitweb' | egrep $REVLINKS
> > >    <a href="/rev/tip?style=gitweb">changeset</a>  | <a
> href="/archive/tip.zip">zip</a>  |
> > >    <td><a href="/file/tip/?style=gitweb">[up]</a></td>
> > > @@ -517,5 +517,5 @@ Set up the repo
> > >    <a href="/annotate/tip/foo?style=gitweb">annotate</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog?style=gitweb&rev=all()' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog?style=gitweb&rev=all()' | egrep $REVLINKS
> > >    <a href="/file?style=gitweb">files</a> | <a
> href="/archive/tip.zip">zip</a>
> > >    <a class="title" href="/rev/9d8c40cba617?style=gitweb"><span
> class="age">Thu, 01 Jan 1970 00:00:00 +0000</span>third<span
> class="logtags"> <span class="branchtag" title="default">default</span>
> <span class="tagtag" title="tip">tip</span> </span></a>
> > > @@ -526,5 +526,5 @@ Set up the repo
> > >    <a href="/rev/43c799df6e75?style=gitweb">changeset</a><br/>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'rev/xyzzy?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'rev/xyzzy?style=gitweb' | egrep $REVLINKS
> > >    <a href="/shortlog/xyzzy?style=gitweb">shortlog</a> |
> > >    <a href="/log/xyzzy?style=gitweb">changelog</a> |
> > > @@ -543,5 +543,5 @@ Set up the repo
> > >    <a href="/log/a7c1559b7bba/foo?style=gitweb">revisions</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog/xyzzy?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog/xyzzy?style=gitweb' | egrep $REVLINKS
> > >    <a href="/log/xyzzy?style=gitweb">changelog</a> |
> > >    <a href="/graph/xyzzy?style=gitweb">graph</a> |
> > > @@ -556,5 +556,5 @@ Set up the repo
> > >    <a href="/shortlog/43c799df6e75?style=gitweb">(0)</a> <a
> href="/shortlog/tip?style=gitweb">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'log/xyzzy?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'log/xyzzy?style=gitweb' | egrep $REVLINKS
> > >    <a href="/shortlog/xyzzy?style=gitweb">shortlog</a> |
> > >    <a href="/graph/xyzzy?style=gitweb">graph</a> |
> > > @@ -567,5 +567,5 @@ Set up the repo
> > >    <a href="/log/43c799df6e75?style=gitweb">(0)</a>  <a
> href="/log/tip?style=gitweb">tip</a> <br/>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'graph/xyzzy?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'graph/xyzzy?style=gitweb' | egrep $REVLINKS
> > >    <a href="/shortlog/xyzzy?style=gitweb">shortlog</a> |
> > >    <a href="/log/xyzzy?style=gitweb">changelog</a> |
> > > @@ -578,5 +578,5 @@ Set up the repo
> > >    | <a href="/graph/43c799df6e75?style=gitweb">(0)</a> <a
> href="/graph/tip?style=gitweb">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file/xyzzy?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file/xyzzy?style=gitweb' | egrep $REVLINKS
> > >    <a href="/rev/xyzzy?style=gitweb">changeset</a>  | <a
> href="/archive/xyzzy.zip">zip</a>  |
> > >    <td><a href="/file/xyzzy/?style=gitweb">[up]</a></td>
> > > @@ -589,5 +589,5 @@ Set up the repo
> > >    <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file/xyzzy/foo?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file/xyzzy/foo?style=gitweb' | egrep $REVLINKS
> > >    <a href="/file/xyzzy/?style=gitweb">files</a> |
> > >    <a href="/rev/xyzzy?style=gitweb">changeset</a> |
> > > @@ -602,5 +602,5 @@ Set up the repo
> > >    <a class="list"
> href="/file/9d8c40cba617/foo?style=gitweb">9d8c40cba617</a></td>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'log/xyzzy/foo?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'log/xyzzy/foo?style=gitweb' | egrep $REVLINKS
> > >    <a href="/file/xyzzy/foo?style=gitweb">file</a> |
> > >    <a href="/annotate/xyzzy/foo?style=gitweb">annotate</a> |
> > > @@ -619,5 +619,5 @@ Set up the repo
> > >    <a href="/log/43c799df6e75/foo?style=gitweb">(0)</a> <a
> href="/log/tip/foo?style=gitweb">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'annotate/xyzzy/foo?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'annotate/xyzzy/foo?style=gitweb' | egrep $REVLINKS
> > >    <a href="/file/xyzzy/?style=gitweb">files</a> |
> > >    <a href="/rev/xyzzy?style=gitweb">changeset</a> |
> > > @@ -641,5 +641,5 @@ Set up the repo
> > >    <a href="/rev/a7c1559b7bba?style=gitweb">changeset</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'diff/xyzzy/foo?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'diff/xyzzy/foo?style=gitweb' | egrep $REVLINKS
> > >    <a href="/file/xyzzy?style=gitweb">files</a> |
> > >    <a href="/rev/xyzzy?style=gitweb">changeset</a> |
> > > @@ -654,5 +654,5 @@ Set up the repo
> > >    <a class="list"
> href="/diff/9d8c40cba617/foo?style=gitweb">9d8c40cba617</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'comparison/xyzzy/foo?style=gitweb' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'comparison/xyzzy/foo?style=gitweb' | egrep $REVLINKS
> > >    <a href="/file/xyzzy?style=gitweb">files</a> |
> > >    <a href="/rev/xyzzy?style=gitweb">changeset</a> |
> > > @@ -669,5 +669,5 @@ Set up the repo
> > >  (De)referencing symbolic revisions (monoblue)
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'summary?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'summary?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/archive/tip.zip">zip</a></li>
> > >    <a href="/rev/9d8c40cba617?style=monoblue">
> > > @@ -689,5 +689,5 @@ Set up the repo
> > >    <a href="/file/9d8c40cba617?style=monoblue">files</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/tip?style=monoblue">graph</a></li>
> > >                <li><a href="/file/tip?style=monoblue">files</a></li>
> > > @@ -704,5 +704,5 @@ Set up the repo
> > >        <a href="/shortlog/43c799df6e75?style=monoblue">(0)</a> <a
> href="/shortlog/tip?style=monoblue">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'log?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'log?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/tip?style=monoblue">graph</a></li>
> > >                <li><a href="/file/tip?style=monoblue">files</a></li>
> > > @@ -713,5 +713,5 @@ Set up the repo
> > >    <a href="/log/43c799df6e75?style=monoblue">(0)</a>  <a
> href="/log/tip?style=monoblue">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'graph?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'graph?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/file/tip?style=monoblue">files</a></li>
> > >            <a href="/graph/tip?revcount=30&style=monoblue">less</a>
> > > @@ -719,5 +719,5 @@ Set up the repo
> > >            | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a
> href="/graph/tip?style=monoblue">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'tags?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'tags?style=monoblue' | egrep $REVLINKS
> > >    <td><a href="/rev/tip?style=monoblue">tip</a></td>
> > >    <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> |
> > > @@ -725,5 +725,5 @@ Set up the repo
> > >    <a href="/file/9d8c40cba617?style=monoblue">files</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'bookmarks?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'bookmarks?style=monoblue' | egrep $REVLINKS
> > >    <td><a href="/rev/xyzzy?style=monoblue">xyzzy</a></td>
> > >    <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a> |
> > > @@ -731,5 +731,5 @@ Set up the repo
> > >    <a href="/file/a7c1559b7bba?style=monoblue">files</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'branches?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'branches?style=monoblue' | egrep $REVLINKS
> > >    <td class="open"><a
> href="/shortlog/default?style=monoblue">default</a></td>
> > >    <a href="/rev/9d8c40cba617?style=monoblue">changeset</a> |
> > > @@ -737,5 +737,5 @@ Set up the repo
> > >    <a href="/file/9d8c40cba617?style=monoblue">files</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/tip?style=monoblue">graph</a></li>
> > >            <li><a href="/rev/tip?style=monoblue">changeset</a></li>
> > > @@ -750,5 +750,5 @@ Set up the repo
> > >    <a href="/annotate/tip/foo?style=monoblue">annotate</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog?style=monoblue&rev=all()' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog?style=monoblue&rev=all()' | egrep $REVLINKS
> > >                <li><a href="/archive/tip.zip">zip</a></li>
> > >        <h3 class="changelog"><a class="title"
> href="/rev/9d8c40cba617?style=monoblue">third<span class="logtags"> <span
> class="branchtag" title="default">default</span> <span class="tagtag"
> title="tip">tip</span> </span></a></h3>
> > > @@ -756,5 +756,5 @@ Set up the repo
> > >    <h3 class="changelog"><a class="title"
> href="/rev/43c799df6e75?style=monoblue">first<span class="logtags">
> </span></a></h3>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'rev/xyzzy?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'rev/xyzzy?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/xyzzy?style=monoblue">graph</a></li>
> > >                <li><a href="/file/xyzzy?style=monoblue">files</a></li>
> > > @@ -772,5 +772,5 @@ Set up the repo
> > >    <a href="/log/a7c1559b7bba/foo?style=monoblue">revisions</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog/xyzzy?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog/xyzzy?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/xyzzy?style=monoblue">graph</a></li>
> > >                <li><a href="/file/xyzzy?style=monoblue">files</a></li>
> > > @@ -784,5 +784,5 @@ Set up the repo
> > >        <a href="/shortlog/43c799df6e75?style=monoblue">(0)</a> <a
> href="/shortlog/tip?style=monoblue">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'log/xyzzy?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'log/xyzzy?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/xyzzy?style=monoblue">graph</a></li>
> > >                <li><a href="/file/xyzzy?style=monoblue">files</a></li>
> > > @@ -792,5 +792,5 @@ Set up the repo
> > >    <a href="/log/43c799df6e75?style=monoblue">(0)</a>  <a
> href="/log/tip?style=monoblue">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'graph/xyzzy?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'graph/xyzzy?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/file/xyzzy?style=monoblue">files</a></li>
> > >            <a href="/graph/xyzzy?revcount=30&style=monoblue">less</a>
> > > @@ -798,5 +798,5 @@ Set up the repo
> > >            | <a href="/graph/43c799df6e75?style=monoblue">(0)</a> <a
> href="/graph/tip?style=monoblue">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file/xyzzy?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file/xyzzy?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/xyzzy?style=monoblue">graph</a></li>
> > >            <li><a href="/rev/xyzzy?style=monoblue">changeset</a></li>
> > > @@ -811,5 +811,5 @@ Set up the repo
> > >    <a href="/annotate/xyzzy/foo?style=monoblue">annotate</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file/xyzzy/foo?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file/xyzzy/foo?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/xyzzy?style=monoblue">graph</a></li>
> > >                <li><a href="/file/xyzzy/?style=monoblue">files</a></li>
> > > @@ -824,5 +824,5 @@ Set up the repo
> > >    <a href="/file/9d8c40cba617/foo?style=monoblue">9d8c40cba617</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'log/xyzzy/foo?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'log/xyzzy/foo?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/xyzzy?style=monoblue">graph</a></li>
> > >                <li><a href="/file/xyzzy?style=monoblue">files</a></li>
> > > @@ -842,5 +842,5 @@ Set up the repo
> > >        <a href="/log/43c799df6e75/foo?style=monoblue">(0)</a> <a
> href="/log/tip/foo?style=monoblue">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'annotate/xyzzy/foo?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'annotate/xyzzy/foo?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/xyzzy?style=monoblue">graph</a></li>
> > >                <li><a href="/file/xyzzy/?style=monoblue">files</a></li>
> > > @@ -864,5 +864,5 @@ Set up the repo
> > >    <a href="/rev/a7c1559b7bba?style=monoblue">changeset</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'diff/xyzzy/foo?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'diff/xyzzy/foo?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/xyzzy?style=monoblue">graph</a></li>
> > >                <li><a href="/file/xyzzy?style=monoblue">files</a></li>
> > > @@ -877,5 +877,5 @@ Set up the repo
> > >    <dd><a
> href="/diff/9d8c40cba617/foo?style=monoblue">9d8c40cba617</a></dd>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'comparison/xyzzy/foo?style=monoblue' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'comparison/xyzzy/foo?style=monoblue' | egrep $REVLINKS
> > >                <li><a href="/graph/xyzzy?style=monoblue">graph</a></li>
> > >                <li><a href="/file/xyzzy?style=monoblue">files</a></li>
> > > @@ -892,5 +892,5 @@ Set up the repo
> > >  (De)referencing symbolic revisions (spartan)
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog?style=spartan' | egrep $REVLINKS
> > >    <a href="/log/tip?style=spartan">changelog</a>
> > >    <a href="/graph/tip?style=spartan">graph</a>
> > > @@ -903,5 +903,5 @@ Set up the repo
> > >    navigate: <small class="navigate"><a
> href="/shortlog/43c799df6e75?style=spartan">(0)</a> <a
> href="/shortlog/tip?style=spartan">tip</a> </small>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'log?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'log?style=spartan' | egrep $REVLINKS
> > >    <a href="/shortlog/tip?style=spartan">shortlog</a>
> > >    <a href="/graph/tip?style=spartan">graph</a>
> > > @@ -920,5 +920,5 @@ Set up the repo
> > >    navigate: <small class="navigate"><a
> href="/log/43c799df6e75?style=spartan">(0)</a>  <a
> href="/log/tip?style=spartan">tip</a> </small>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'graph?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'graph?style=spartan' | egrep $REVLINKS
> > >    <a href="/log/tip?style=spartan">changelog</a>
> > >    <a href="/shortlog/tip?style=spartan">shortlog</a>
> > > @@ -927,11 +927,11 @@ Set up the repo
> > >    navigate: <small class="navigate"><a
> href="/graph/43c799df6e75?style=spartan">(0)</a> <a
> href="/graph/tip?style=spartan">tip</a> </small>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'tags?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'tags?style=spartan' | egrep $REVLINKS
> > >    <a href="/rev/9d8c40cba617?style=spartan">tip</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'branches?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'branches?style=spartan' | egrep $REVLINKS
> > >    <a href="/shortlog/9d8c40cba617?style=spartan"
> class="open">default</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file?style=spartan' | egrep $REVLINKS
> > >    <a href="/log/tip?style=spartan">changelog</a>
> > >    <a href="/shortlog/tip?style=spartan">shortlog</a>
> > > @@ -945,5 +945,5 @@ Set up the repo
> > >    <td><a href="/file/tip/foo?style=spartan">foo</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog?style=spartan&rev=all()' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog?style=spartan&rev=all()' | egrep $REVLINKS
> > >    <a href="/archive/tip.zip">zip</a>
> > >      <td class="node"><a
> href="/rev/9d8c40cba617?style=spartan">9d8c40cba617</a></td>
> > > @@ -961,5 +961,5 @@ Set up the repo
> > >      <td class="files"><a
> href="/diff/43c799df6e75/dir/bar?style=spartan">dir/bar</a> <a
> href="/diff/43c799df6e75/foo?style=spartan">foo</a> </td>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'rev/xyzzy?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'rev/xyzzy?style=spartan' | egrep $REVLINKS
> > >    <a href="/log/xyzzy?style=spartan">changelog</a>
> > >    <a href="/shortlog/xyzzy?style=spartan">shortlog</a>
> > > @@ -973,5 +973,5 @@ Set up the repo
> > >     <td class="files"><a
> href="/file/a7c1559b7bba/foo?style=spartan">foo</a> </td>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'shortlog/xyzzy?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'shortlog/xyzzy?style=spartan' | egrep $REVLINKS
> > >    <a href="/log/xyzzy?style=spartan">changelog</a>
> > >    <a href="/graph/xyzzy?style=spartan">graph</a>
> > > @@ -983,5 +983,5 @@ Set up the repo
> > >    navigate: <small class="navigate"><a
> href="/shortlog/43c799df6e75?style=spartan">(0)</a> <a
> href="/shortlog/tip?style=spartan">tip</a> </small>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'log/xyzzy?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'log/xyzzy?style=spartan' | egrep $REVLINKS
> > >    <a href="/shortlog/xyzzy?style=spartan">shortlog</a>
> > >    <a href="/graph/xyzzy?style=spartan">graph</a>
> > > @@ -997,5 +997,5 @@ Set up the repo
> > >    navigate: <small class="navigate"><a
> href="/log/43c799df6e75?style=spartan">(0)</a>  <a
> href="/log/tip?style=spartan">tip</a> </small>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'graph/xyzzy?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'graph/xyzzy?style=spartan' | egrep $REVLINKS
> > >    <a href="/log/xyzzy?style=spartan">changelog</a>
> > >    <a href="/shortlog/xyzzy?style=spartan">shortlog</a>
> > > @@ -1004,5 +1004,5 @@ Set up the repo
> > >    navigate: <small class="navigate"><a
> href="/graph/43c799df6e75?style=spartan">(0)</a> <a
> href="/graph/tip?style=spartan">tip</a> </small>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file/xyzzy?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file/xyzzy?style=spartan' | egrep $REVLINKS
> > >    <a href="/log/xyzzy?style=spartan">changelog</a>
> > >    <a href="/shortlog/xyzzy?style=spartan">shortlog</a>
> > > @@ -1016,5 +1016,5 @@ Set up the repo
> > >    <td><a href="/file/xyzzy/foo?style=spartan">foo</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'file/xyzzy/foo?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'file/xyzzy/foo?style=spartan' | egrep $REVLINKS
> > >    <a href="/log/xyzzy?style=spartan">changelog</a>
> > >    <a href="/shortlog/xyzzy?style=spartan">shortlog</a>
> > > @@ -1029,5 +1029,5 @@ Set up the repo
> > >    <td><a
> href="/file/9d8c40cba617/foo?style=spartan">9d8c40cba617</a></td>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'log/xyzzy/foo?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'log/xyzzy/foo?style=spartan' | egrep $REVLINKS
> > >       href="/atom-log/tip/foo" title="Atom feed for test:foo">
> > >       href="/rss-log/tip/foo" title="RSS feed for test:foo">
> > > @@ -1046,5 +1046,5 @@ Set up the repo
> > >       <a href="/annotate/43c799df6e75/foo?style=spartan">(annotate)</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'annotate/xyzzy/foo?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'annotate/xyzzy/foo?style=spartan' | egrep $REVLINKS
> > >    <a href="/log/xyzzy?style=spartan">changelog</a>
> > >    <a href="/shortlog/xyzzy?style=spartan">shortlog</a>
> > > @@ -1068,5 +1068,5 @@ Set up the repo
> > >    <a href="/rev/a7c1559b7bba?style=spartan">changeset</a>
> > >
> > > -  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT
> 'diff/xyzzy/foo?style=spartan' | egrep $REVLINKS
> > > +  $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT
> 'diff/xyzzy/foo?style=spartan' | egrep $REVLINKS
> > >    <a href="/log/xyzzy?style=spartan">changelog</a>
> > >    <a href="/shortlog/xyzzy?style=spartan">shortlog</a>
> > > diff --git a/tests/test-hgwebdir.t b/tests/test-hgwebdir.t
> > > --- a/tests/test-hgwebdir.t
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170220/b70dd79d/attachment-0001.html>


More information about the Mercurial-devel mailing list