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.
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.
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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With