tests/test-rebase-newancestor
author Pascal Quantin <pascal.quantin@gmail.com>
Sun, 29 Aug 2010 23:16:31 +0200
branchstable
changeset 12081 787a5a71e524
parent 11208 2313dc4d9817
permissions -rwxr-xr-x
win32: add hgweb scripts to Inno Setup installer

#!/bin/sh

. $TESTDIR/helpers.sh

echo "[extensions]" >> $HGRCPATH
echo "graphlog=" >> $HGRCPATH
echo "rebase=" >> $HGRCPATH

rm -rf repo
hg init repo
cd repo

echo A > a
echo >> a
hg commit -AmA -u test -d '0 0'

echo B > a
echo >> a
hg commit -mB -u test -d '1 0'

echo C > a
echo >> a
hg commit -mC -u test -d '2 0'

hg up -C 0
echo D >> a
hg commit -AmAD -u test -d '3 0'

hg glog --template '{rev}:{desc} {node|short}\n'
hg rebase -q -s 1 -d 3 | hidebackup
hg glog --template '{rev}:{desc} {node|short}\n'

exit 0