view tests/test-http.t @ 1056:3a7daf4e1cae

compat: add some optional "new changesets" lines to push/pull test output
author Kevin Bullock <>
date Mon, 23 Oct 2017 14:38:35 -0500
parents a510bdf00fa0
line wrap: on
line source

#require serve

  $ hg init test
  $ cd test
  $ echo foo>foo
  $ mkdir foo.d foo.d/bAr.hg.d foo.d/baR.d.hg
  $ echo foo>foo.d/foo
  $ echo bar>foo.d/bAr.hg.d/BaR
  $ echo bar>foo.d/baR.d.hg/bAR
  $ hg commit -A -m 1
  adding foo
  adding foo.d/bAr.hg.d/BaR
  adding foo.d/baR.d.hg/bAR
  adding foo.d/foo
  $ hg serve -p $HGPORT -d --pid-file=../ -E ../error.log
  $ hg --config server.uncompressed=False serve -p $HGPORT1 -d --pid-file=../

Test server address cannot be reused

#if windows
  $ hg serve -p $HGPORT1 2>&1
  abort: cannot start server at '*:$HGPORT1': * (glob)
  $ hg serve -p $HGPORT1 2>&1
  abort: cannot start server at '*:$HGPORT1': Address already in use (glob)
  $ cd ..
  $ cat >> $DAEMON_PIDS

Load commonly used test logic
  $ . "$TESTDIR/testutil"

Make sure that clone regular mercurial repos over http doesn't break

  $ hg clone http://localhost:$HGPORT/ copy 2>&1
  requesting all changes
  adding changesets
  adding manifests
  adding file changes
  added 1 changesets with 4 changes to 4 files
  new changesets 8b6053c928fe (?)
  updating to branch default
  4 files updated, 0 files merged, 0 files removed, 0 files unresolved