tests/test-mq-qsave.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 10 Mar 2020 16:47:02 +0100
branchstable
changeset 44471 fb7da4759a18
parent 12324 b701610f6c56
child 49621 55c6ebd11cb9
permissions -rw-r--r--
run-tests: fix conditional when tests are run outside of `tests` The logic to find `hghave` was using `__file__` but… non absolute path in `__file__` gets wrong as soon as we change directory (thanks python… you are being helpful). The rest of the `run-tests.py` code already deal with this fine. We simply reuse the `RUNTESTDIR` variable to fix it.

  $ 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