tests/test-bad-pull.t
author Matt Harbison <matt_harbison@yahoo.com>
Sun, 20 Aug 2023 01:12:26 -0400
changeset 50833 de3191c0cec9
parent 45839 ebee234d952a
permissions -rw-r--r--
config: use the writefile() utility to create the sample hgrc This function uses a context manager.

#require serve

  $ hg clone http://localhost:$HGPORT/ copy
  abort: * (glob)
  [100]

  $ test -d copy
  [1]

  $ "$PYTHON" "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
  $ cat dumb.pid >> $DAEMON_PIDS
  $ hg clone http://localhost:$HGPORT/foo copy2
  abort: HTTP Error 404: * (glob)
  [100]
  $ killdaemons.py