Source

aurum / test / gentests-setuptestrepos.zsh

#!/bin/zsh
emulate -L zsh
tar xJf testrepo.tar.xz

for test in annotate-buffers commit record stat statmaps vimdiff diff update \
            prevmessage vimdiff-usewin vimdiff-full
do
    mkdir ${test}repo
    tar c -C testrepo . | (cd ${test}repo && tar x)
done
hg clone testrepo testrepo-cloned
for test in *.in ; do
    test=$test:r
    [[ -d ${test}repo ]] && continue
    mkdir ${test}repo
    tar c -C testrepo-cloned . | (cd ${test}repo && tar x)
done