tests/test-mq-qsave.t
author Durham Goode <durham@fb.com>
Mon, 11 Nov 2013 16:40:02 -0800
changeset 20073 eeba4eaf0716
parent 12324 b701610f6c56
child 49585 55c6ebd11cb9
permissions -rw-r--r--
revlog: return lazy set from findcommonmissing When computing the commonmissing, it greedily computes the entire set immediately. On a large repo where the majority of history is irrelevant, this causes a significant slow down. Replacing it with a lazy set makes amend go from 11 seconds to 8.7 seconds.

  $ 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