Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change SVN message editor

Tags:

svn

So my co-worker felt it necessary to go onto my development box and do some code changes, then submit his work to subversion. I never set the commit message editor, and all of a sudden, one day I forgot to add the -m handle and apparently he set the default editor to emacs.

Being that I don't know the first thing about emacs and prefer vim myself, how do I go about changing the default editor for SVN commands to vim after it's already been set? I deleted the .subversion directory under the home directory, and it still prompts me.

like image 462
Scott Avatar asked Jun 28 '11 12:06

Scott


People also ask

How to edit the commit message in svn?

In that right click on the revision id for your commit and select 'Set commit properties' . You can modify the message as you want from here. At least in TortoiseSVN, trying to edit the commit properties for a commit in the commit log fails with the same error message as trying to directly edit the log message.

How do I view svn logs?

Examples. You can see the log messages for all the paths that changed in your working copy by running svn log from the top: $ svn log ------------------------------------------------------------------------ r20 | harry | 2003-01-17 22:56:19 -0600 (Fri, 17 Jan 2003) | 1 line Tweak.


2 Answers

You can add corresponding setting in your $HOME/.subversion/config or %USERPROFILE%\Subversion\config. e.g. for my Windows VM I have got:

[helpers] editor-cmd = c:/emacs-24.3/bin/runemacs.exe 
like image 60
vvlevchenko Avatar answered Sep 28 '22 08:09

vvlevchenko


Update your SVN_EDITOR environment variable. You can try

echo $SVN_EDITOR 

to see if this is set to something else in your shell - in which case you might want to take a look at your .bashrc (or similar) file.

like image 26
borrible Avatar answered Sep 28 '22 08:09

borrible