tests/test-mq-qsave.t
author Constantine Linnick <theaspect@gmail.com>
Sun, 24 Mar 2013 00:06:52 +0700
changeset 18819 05acdf8e1f23
parent 12324 b701610f6c56
child 49621 55c6ebd11cb9
permissions -rw-r--r--
convert: add closesort algorithm to mercurial sources If you actively work with branches, sometimes you need to close old branches which last commited hundreds revisions ago. After close you will see long lines in graph visually spoiling history. This sort only moves closed revisions as close as possible to parents and does not increase storage size as datesort do.

  $ 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