Subversion Usage

List of features

svn list http://halsvn01/svn/hal/branches/features/ | grep -i searchforme

How to create a release candidate

svn copy http://halsvn01/svn/hal/trunk http://halsvn01/svn/hal/tags/yy.ww-RC## -m "Tagging current RC branch to yy.ww-RC##"

How to delete a branch

svn delete http://halsvn01/svn/hal/branches/features/branch-to-delete -m "Feature merged to trunk and migrated to prod, deleting for cleanup"

Create a feature branch

svn copy http://halsvn01/svn/hal/trunk http://halsvn01/svn/hal/branches/features/webss-9999-your-feature-here -m "Your description here. Fix WEBSS-XXXX"

Checking differences
svn diff

Checking differences and ignore white space
svn diff -x -w

Getting ready to merge into Release Candidate RC

Add files to your feature
svn add /your-path/your-filename.extension

Merge trunk into your current feature to avoid collisions
svn merge http://halsvn01/svn/hal/trunk
svn commit -m "Your description of what is being done"

Create a Patch and Apply It

### Create a patch file and put it on your Desktop
svn diff > ~/Desktop/barclays-diff-patch.txt

### Apply the patch to a feature
patch -p0 -i ~/Desktop/barclays-diff-patch.txt

Leave a Reply