How to undo a SVN commit from the command line

SVN 1.4 added a feature to support easy rollback of a SVN commit. It's documented in SVN help, but unfortunately SVN help only makes sense if you already understand what it's trying to explain. Here's the easy commit revert command to run against your working copy:

svn merge -c -[REV] [REPO]

Replace the brackets with the offending revision number and your SVN repository respectively. For example, to undo the changes made by revision 42:

svn merge -c -42 http://example.com/svn/trunk .