Source

aurum / test / createsvnrepo.zsh

The branch 'bzr-support' does not exist.
#!/bin/zsh
export TZ=UTC
svnadmin create svntestreposerver
# tar -xJf svntestreposerver.tar.xz
svn checkout file://$PWD/svntestreposerver svntestrepo
cd svntestrepo

> file-under-svn-control << EOF
First line
Second line
Third line
Fourth line
Fifth line
Sixth line
EOF
svn add file-under-svn-control
svn commit --message 'Added file-under-svn-control'
mkdir subdir
svn add subdir
svn commit --message 'Commit where only a directory added'
echo File that looks like a “svn add” key > --force
svn add -- --force
svn commit --message 'Added --force'
echo Seventh line >> file-under-svn-control
echo Abc > def
echo Def > ghi
echo Ghi > mno
mkdir subdir2
echo Mno > subdir/pqr
echo Pqr > subdir2/stu
svn add -- def ghi mno subdir2 subdir/pqr
svn commit --message "\
Added seventh line to file-under-svn-control
Added def, ghi, mno
Added subdir/pqr
Added subdir2, subdir2/stu"
perl -p -i -e 's/Fourth/4’th/' file-under-svn-control
svn commit -m 'Replaced “Fourth” with “4’th”'
cd subdir
> file-2 << EOF
Line 1
First line
Seventh line
Second line
EOF
svn add file-2
svn commit --message 'Added file-2'
perl -p -i -e 's/Line 1/Zero line/; s/Second line/Third line/;' file-2
svn commit --message 'Replace “Line 1” with “Zero line”'
cd ..
echo '9’th line' >> file-under-svn-control
svn commit --message 'Added 9’th line to file-under-svn-control'
cd subdir
perl -p -i -e 's/Seventh line/Second line/' file-2
svn commit --message 'Fix: s/Seventh/Second/'
cd ..

cd ..
tar -cJvf svntestreposerver.tar.xz svntestreposerver
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.