tests/test-mq-qsave.t
author Yuya Nishihara <yuya@tcha.org>
Sun, 02 Nov 2014 13:08:46 +0900
changeset 23136 6eab50a34fed
parent 12324 b701610f6c56
child 49621 55c6ebd11cb9
permissions -rw-r--r--
tests: have dumbhttp.py use cmdutil.service() to wait for child to listen() Because the original dumbhttp.py exited without waiting for listen(), several tests could fail with "abort: error: Connection refused" if subsequent hg command is fast enough.

  $ echo "[extensions]" >> $HGRCPATH
  $ echo "mq=" >> $HGRCPATH

  $ hg init

  $ echo 'base' > base
  $ hg ci -Ambase
  adding base

  $ hg qnew -mmqbase mqbase

  $ hg qsave
  $ hg qrestore 2
  restoring status: hg patches saved state