tests/test-mq-qsave.t
author Yuya Nishihara <yuya@tcha.org>
Sat, 17 Mar 2018 20:52:50 +0900
changeset 37273 83e1bbd48991
parent 12324 b701610f6c56
child 49621 55c6ebd11cb9
permissions -rw-r--r--
templater: define interface for objects requiring unwraphybrid() Prepares for introducing another hybrid-like data type. show() takes context as an argument so a wrapper class may render its items by pre-configured template: def show(self, context, mapping): return (context.expand(self._tmpl, mapping + lm) for lm in self._mappings)

  $ 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