tests/test-mq-qsave.t
author Gregory Szorc <gregory.szorc@gmail.com>
Fri, 25 Mar 2016 10:47:49 -0700
branchstable
changeset 28632 a2c2dd399f3b
parent 12324 b701610f6c56
child 49621 55c6ebd11cb9
permissions -rw-r--r--
hg: perform update after pulling during clone with share (issue5103) This is a graft of 60adda1a0188 and a4692267bc2d from the default branch. Combined, they address a bug with pooled shared storage where an update may not update to the most recent revision when performing a `hg clone`. The patches should have been written against the stable branch in the beginning. I screwed up.

  $ 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