tests/test-mq-qsave.t
author Pierre-Yves David <pierre-yves.david@fb.com>
Mon, 12 Oct 2015 00:45:24 -0700
changeset 26603 517ffec37dee
parent 12324 b701610f6c56
child 49585 55c6ebd11cb9
permissions -rw-r--r--
discovery: put trivial branch first Having the simple and tiny branch of the conditional first help readability. The "else" that appears after a screen of code is harder to relate to a conditional.

  $ 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