Wednesday, May 23, 2012

Using Notepad++ to edit Subversion commit messages

You can set the Subversion editor with the SVN_EDITOR environment variable. Unfortunately, if you have other documents open, Notepad++ will edit your commit message in the existing process. The new process launched by Subversion will exit immediately, leading Subversion to complain:

Log message unchanged or not specified
(a)bort, (c)ontinue, (e)dit:

The trick is to open Notepad++ in a new process with the -multiInst option.

set SVN_EDITOR="c:\Progra~1\NotePad++\notepad++ -multiInst"

Once that option is provided everything works correctly.

Via SVNForum.

No comments:

Post a Comment