tests/test-mq-qsave.t
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 15 Nov 2019 10:16:27 -0800
changeset 43695 fa246ada356b
parent 12324 b701610f6c56
child 49621 55c6ebd11cb9
permissions -rw-r--r--
templates: make {indent("", " ")} be empty indent() is documented to indent all non-empty lines, but it made an exception for the first line, which always got indented. I also made indent() not indent the first line even if an indent override was given for the first line. I think that is what one would usually want. Differential Revision: https://phab.mercurial-scm.org/D7432

  $ 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