Posts Tagged ‘svn’

How To Set SVN_EDITOR Environment Variable

Wednesday, January 6th, 2010

If you get the following error messages:

svn: Commit failed (details follow):
svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options

svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set, and no 'editor-cmd' run-time configuration option was found

use the following command in the shell:

export SVN_EDITOR=nano

How to test a SVN commit?

Thursday, June 18th, 2009

Do a dry-run with:


svn merge --dry-run -r BASE:HEAD .

How to install Subversion client on cPanel

Thursday, June 18th, 2009

You can do it in console with:

# yum install subversion

and then you may get this error:

Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion

To solve this do the following:
#wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/7/Everything/i386/os/Fedora/perl-URI-1.35-3.noarch.rpm
# rpm -i perl-URI-1.35-3.noarch.rpm
# yum install subversion

That’s it subversion client is successfully installed on your server you can check it using following command.
#svn --version

How to delete the .svn folders recursively?

Friday, June 12th, 2009

You can delete the .svn folders recursive by using the following command:


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