enable ‘svn commit’ from PowerShell
If you’re trying to use Subversion from the PowerShell command line and you can’t get around this error message:
PS C:\Users\Public\Source> svn commit .
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 are set, and no ‘editor-cmd’ run-time configuration option was found
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 are set, and no ‘editor-cmd’ run-time configuration option was found
Set your SVN_EDITOR preference with this command (substituting “type” for your preferred editor):
PS C:\Users\Public\Source> set-item -path env:SVN_EDITOR -value “type”