tests/test-mq-qsave.t
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
Mon, 20 Jun 2011 14:11:01 +0200
branchstable
changeset 14698 df902fe3d79e
parent 12324 b701610f6c56
child 49585 55c6ebd11cb9
permissions -rw-r--r--
treediscovery: always return all remote heads Old discovery only returned incoming heads, not all of them (for changegroupsubset). New discovery must always return all of the remote heads (for getbundle). I failed to properly adjust treediscovery in cb98fed52495 when introducing setdiscovery. The actual observable problem was 'remote: unsynced changes' when trying to push a cset on one named branch to a server with a new cset on another named branch. This scenario is now tested in test-treediscovery.t.

  $ 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