tests/bundles/rebase.sh
author Nicolas Dumazet <nicdumz.commits@gmail.com>
Sat, 30 Apr 2011 17:38:06 +0200
changeset 14118 7fd8e597f99c
child 14119 624e5ce615ec
permissions -rwxr-xr-x
tests: introduce a rebase bundle to use with rebase tests Allows saving a few seconds in test runs by not constructing over and over the same repository.

#!/bin/bash
hg init rebase
cd rebase

echo A > A
hg ci -Am A
echo B > B
hg ci -Am B
hg up -q -C 0
echo C > C
hg ci -Am C
hg up -q -C 0
echo D > D
hg ci -Am D
hg merge -r 2
hg ci -m E
hg up -q -C 3
echo F > F
hg ci -Am F

hg bundle -a ../rebase.hg

cd ..
rm -Rf rebase