tests/test-mq-qsave.t
author Yuya Nishihara <yuya@tcha.org>
Thu, 03 Aug 2017 23:02:32 +0900
changeset 33682 1d5e497c08b3
parent 12324 b701610f6c56
child 49621 55c6ebd11cb9
permissions -rw-r--r--
py3: convert arbitrary exception object to byte string more reliably Our exception types implement __bytes__(), which should be tried first. Do lossy encoding conversion as a last resort.

  $ 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