tests/test-bad-pull.t
author Yuya Nishihara <yuya@tcha.org>
Tue, 05 Dec 2017 21:50:33 +0900
changeset 35248 c752fbe228fb
parent 32940 75be14993fda
child 37845 b4b7427b5786
permissions -rw-r--r--
repoview: extract a factory function of proxy class This makes sure that dynamically-created class objects are isolated from local binding of repo instances. The type cache is moved to module level as it isn't tied to each instance.

#require serve killdaemons

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

  $ 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)
  [255]
  $ killdaemons.py