tests/test-mq-qsave.t
author Pulkit Goyal <7895pulkit@gmail.com>
Fri, 03 Mar 2017 13:04:32 +0530
changeset 31159 76a64c1e5439
parent 12324 b701610f6c56
child 49585 55c6ebd11cb9
permissions -rw-r--r--
py3: add pycompat.open and replace open() calls open() requires mode argument as unicodes on Python 3. This patch introduces pycompat.open() which is inserted to files using transformer and replaces builtins.open() calls.

  $ 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