tests/test-mq-qrename
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 10 Mar 2007 22:03:21 -0300
changeset 4172 1df1baf2002e
parent 3080 82c9d1aac308
permissions -rwxr-xr-x
fix qclone to a remote repo This fixes issue467. -stable still needs something like revision 55578a8d7e84 - mq: allow push if -r is given explicitly. In the meantime, hg qpop -a; hg qclone . ssh://... is a workaround.

#!/bin/sh

echo "[extensions]" >> $HGRCPATH
echo "mq=" >> $HGRCPATH

hg init a
cd a

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

hg qnew -mmqbase mqbase
hg qrename mqbase renamed
mkdir .hg/patches/foo
hg qrename renamed foo
hg qseries
ls .hg/patches/foo
mkdir .hg/patches/bar
hg qrename foo/renamed bar
hg qseries
ls .hg/patches/bar
hg qrename bar/renamed baz
hg qseries
ls .hg/patches/baz