Twitter Feed

Sponsors

Related Links

SVN Quick reference

I use subversion on a daily basis; however, I don't use every command frequently so here is a quick list of subversion commands I don't require on a daily basis. I guess this is meant to be a cheat sheet.

Remove all .svn directories

There are a few reasons why you may want to remove all the .svn files. If you preformed a checkout when you should have been performing an export you will want to run the following command. You also may have copied a directory from another project and want to checkin the directory for the new project.

find . -name ".svn" -type d -exec rm -rf {} \;

See what you are about to update

I upload from svn to my web server files. Sometimes I want to see what files will be updated before I run the update. This is how your check.

svn status -u

What revisions changed this file

See the log for a certain file

svn log file.txt

Diff specific revisions

See the difference between two revisions of the same file. Where REVNO is the revision number and HEAD is "HEAD" or the revision number

svn diff --revision REVNO:HEAD filename.php

List touched files of a certain revision

Show the files that have been changed in a certain revision. Where PREV is the revision number before the change and CHANGED is the certain version you want to know what changed

svn diff -r PREV:CHANGED --summarize