view tests/fixtures/pushrenames.sh @ 148:0c5f6420a8b5

tests: Add an environment variable (HGSUBVERSION_TEST_TEMP) which allows specification of where temporary repositories (both hg and svn) should be created. Set it to a RAM disk to make the tests run faster.
author Augie Fackler <durin42@gmail.com>
date Sat, 20 Dec 2008 19:13:46 -0600
parents 49b7cbe4c8e3
children
line wrap: on
line source

#!/bin/sh
#
# Generate pushrenames.svndump
#

mkdir temp
cd temp

mkdir project-orig
cd project-orig
mkdir trunk
mkdir branches
cd ..

svnadmin create testrepo
svnurl=file://`pwd`/testrepo
svn import project-orig $svnurl -m "init project"

svn co $svnurl project
cd project/trunk
echo a > a
echo b > b
echo c > c
echo d > d
echo e > e
svn add a b c d e
svn ci -m "add files"
cd ../..

svnadmin dump testrepo > ../pushrenames.svndump