views:

818

answers:

2

Simply setting the SVN_EDITOR variable to "mate" does not get the job done. It opens TextMate when appropriate, but then when I save the message and exit, I'm prompted to continue, abort or try again. It seems like the buffer isn't returned to the svn command for use.

+10  A: 

You need to include a command line option in your SVN_EDITOR (or EDITOR) variable

export SVN_EDITOR='mate -w'

This makes the svn command wait for the editor to close/release the file before continuing, which is where the process is getting mucked up now.

See here.

delfuego
+1  A: 

I believe you're looking for "mate -w". Just "mate" returns control to the program, while -w tells it to wait for textmate to finish.

http://manual.macromates.com/en/using_textmate_from_terminal.html