diff tests/fixtures/renametagdir.sh @ 521:839734dfb5c7

Handle tag subdirectory as tag in replay mode (issue119) Original version by Dirkjan Ochtman <dirkjan@ochtman.nl>
author Patrick Mezard <pmezard@gmail.com>
date Fri, 22 Jan 2010 18:01:19 -0600
parents
children d380e7e4175a
line wrap: on
line diff
new file mode 100755
--- /dev/null
+++ b/tests/fixtures/renametagdir.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# inspired by Python r62868
+
+mkdir temp
+cd temp
+svnadmin create repo
+svn co file://`pwd`/repo wc
+export REPO=file://`pwd`/repo
+cd wc
+mkdir branches trunk tags
+svn add *
+svn ci -m 'btt'
+
+echo a > trunk/a
+svn add trunk/a
+svn ci -m 'Add file.'
+svn up
+
+svn cp trunk branches/test
+svn ci -m 'Branch.'
+svn up
+
+cd ..
+svn cp -m 'First tag.' $REPO/branches/test@3 $REPO/tags/test-0.1
+svn cp -m 'Weird tag.' $REPO/branches/test@3 $REPO/tags/test-0.1/test
+
+cd ..
+svnadmin dump temp/repo > renametagdir.svndump
+echo
+echo 'Complete.'
+echo 'You probably want to clean up temp now.'
+echo 'Dump in renametagdir.svndump'
+exit 0