tests/test-mq-qsave.t
author Martin von Zweigbergk <martinvonz@google.com>
Tue, 21 Apr 2015 09:29:59 -0700
changeset 24955 1df233bcb7f6
parent 12324 b701610f6c56
child 49621 55c6ebd11cb9
permissions -rw-r--r--
remove: use ctx.hasdir(f) instead of 'f in ctx.dirs()' This speeds up 'hg remove python/README' on the Firefox repo from 2.479s to 0.664s with lazily loaded treemanifests (which is not yet in core) and has no measurable effect on flat manifests.

  $ 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