Some svn commands

Lately I was reintroduced to svn. I haven’t used it for about four years, I think, so my syntax was rusty.

Here’s some commands I find useful for svn.
View local changes

svn diff

View commit log

svn log

Limit amount of log to X recent entries:

svn log --limit X

View diff between two revisions:

svn diff -r XXXXX:YYYYY

Rollback to a previous version
This command simply replaces what is in the current directory with the specified version.

svn up -rXXXXX

Of course just use normal svn up to update to the latest revision.

Leave a Reply

Your email address will not be published. Required fields are marked *