tests/test-mq-qsave
author Giorgos Keramidas <keramida@ceid.upatras.gr>
Sun, 13 Aug 2006 20:21:13 +0300
changeset 2876 0ffca0cb9f4b
parent 2809 1bb8dd08c594
child 2976 61fcd9fac434
permissions -rwxr-xr-x
Use cached hg-root-dir instead of rediscovering by a second call to (hg-root). We have the path we need already as the value of hg-root-dir.

#!/bin/sh

HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
echo "[extensions]" >> $HGTMP/.hgrc
echo "mq=" >> $HGTMP/.hgrc

hg init a
cd a

echo 'base' > base
hg ci -Ambase -d '1 0'

hg qnew -mmqbase mqbase

hg qsave
hg qrestore 2