SVN Tricks in Linux

To show colorized svn diff

1
sudo aptitude install colordiff

Then on your home directory there is a hidden file called .bashrc.
Edit it.

1
vim ~/.bashrc

Append the following code at the end of the file

1
2
3
4
svndiff()
{
  svn diff "${@}" | colordiff
}

Reload the .bashrc file:

1
 ~/.bashrc

Next to view the diff use svndiff instead of svn diff

Removing all .svn subfolders

1
rm -rf `find . -type d -name .svn`

SVN Revert All

1
svn st -q | awk '{print $2;}' | xargs svn revert
This entry was posted in Linux, Operating System, Version Control. Bookmark the permalink.

Leave a Reply

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


7 + = sixteen