Dump remote Subversion repository and load it into a local one
to speed up following `git-svn` operations.
--- /dev/null
+#! /bin/sh
+
+if [ -z "$1" ]; then
+ echo "Usage: $0 svn_url [dir]" >&2
+ exit 1
+fi
+
+url="$1"
+
+if [ -z "$2" ]; then
+ dir="`basename $url`"
+else
+ dir="$2"
+fi
+
+if [ -z "$dir" ]; then
+ echo "Usage: $0 $url dir" >&2
+ exit 1
+fi
+
+svnrdump dump --non-interactive "$url" > "$dir".svndump &&
+svnadmin create "$dir".svn &&
+exec svnadmin load "$dir".svn < "$dir".svndump