A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Subversion basics

# checkout / create a new project
svn checkout https://example.googlecode.com/svn/trunk/ example --username [username]

# submit a directory for the first time
svn import newdir/ https://example.googlecode.com/svn/trunk/

# see all modified files in project
svn status -v

# submit modified files
svn commit

# diff
svn diff --diff-cmd diff -x -wB [filename]
svn diff --diff-cmd diff -x --side-by-side [filename]

# move or copy, keeping history
svn mv [old file] [new file]
svn copy [old file] [new file]

# update your workspace to head
svn up /your-workspace

# update your workspace to a particular date
svn up -r {2010-11-14} /your-workspace

# ignore a file or directory
svn propset svn:ignore [file or dir] [parent dir]