view tests/fixtures/emptyrepo.sh @ 675:31cd9f41ec09

svnwrap: improve a docstring & a comment. The docstring for SubversionRepo was technically inaccurate; not only do we require Subversion 1.5, but the reference to a required parameter is inaccurate, as the parameter has a default value. (To be fair, relying on the default value is unlikely to work...) Part of a comment in SubversionRepo.revisions() was redundant, and could be removed. No functionality change.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Wed, 11 Aug 2010 19:57:35 +0200
parents 6c9b7cf1c5aa
children
line wrap: on
line source

#!/bin/sh
#
# Generate renames.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
# Create and remove a file, hgsubversion does not like
# empty repositories
echo a > a
svn add a
svn ci -m "add a"
svn rm a
svn ci -m "remove a"
cd ../..

svnadmin dump testrepo > ../emptyrepo.svndump