I must be missing something stupid! It works fine when I use the -m option.
$ echo $SVN_EDITOR
emacs
$ svn commit test.py
svn: Commit failed (details to follow):
svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR envirionment variable or using the --message (-m) or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found
To set an environment variable, use the command " export varname=value ", which sets the variable and exports it to the global environment (available to other processes). Enclosed the value with double quotes if it contains spaces. To set a local variable, use the command " varname =value " (or " set varname =value ").
Though this is a cygwin question, I would like to state that on windows command line when using svn command line (collabnet), you could use the following
set SVN_EDITOR=notepad.exe
I am stating this hear since it might help windows users and did not find anything else related to this on other SO questions.
I have never seen a platform where SVN_EDITOR actually works -- it doesn't work on Mac OS X either. Use EDITOR, it should work fine.
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