tags:

views:

172

answers:

2

I'm using Subversion to checkin a file on OSX. I have my EDITOR variable configured to MacVim

My .profile includes:

export EDITOR=/Applications/MacVim/mvim

When I checkin with the -m option (svn ci somefile), MacVim gets launched but then Subversion immediately displays:

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

It displays this before I get a chance to save my log message in MacVim.

Is there a way to get SVN to use MacVim as the log message editor?

A: 

See open --help:

-W, --wait-apps Blocks until the used applications are closed (even if they were already running).

export EDITOR="open --wait -a /Applications/MacVim/mvim"

If the above doesn't work, you may need to put it into shell script and make $EDITOR to point that script.

jholster
+3  A: 

You need to run mvim with the -f flag so that it stays in the foreground. By default, it forks and returns control to the terminal which makes subversion think it is done.

jamessan