Skip to content

Instantly share code, notes, and snippets.

@cyberfox
Created October 28, 2008 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyberfox/20498 to your computer and use it in GitHub Desktop.
Save cyberfox/20498 to your computer and use it in GitHub Desktop.
#!/bin/sh
svn mkdir svn://svn/test_branching svn://svn/test_branching/trunk svn://svn/test_branching/branches -m"Create a test repository for branching."
mkdir branch_tmp
cd branch_tmp
svn co svn://svn/test_branching/trunk test/
cd test
echo "This is a test." > testme.txt
svn add testme.txt
svn commit testme.txt -m"Add a test file."
svn cp svn://svn/test_branching/trunk svn://svn/test_branching/branches/new_branch -m"Create a new branch with the test file in it."
cd ..
svn co svn://svn/test_branching/branches/new_branch new_branch/
cd new_branch
echo "This is another test..." >> testme.txt
svn commit -m"Modify the test file on the branch."
echo "Now go view the commit in Warehouse...it blows up for me."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment