Mercurial > hgsubversion
diff tests/fixtures/emptyrepo.sh @ 83:6c9b7cf1c5aa
push_cmd: delete empty svn directories, refactor directory creation
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Fri, 14 Nov 2008 16:18:24 -0600 |
parents | |
children |
line wrap: on
line diff
new file mode 100755 --- /dev/null +++ b/tests/fixtures/emptyrepo.sh @@ -0,0 +1,30 @@ +#!/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