[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn-commit.tmp. How is it intended to be used?

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-08-15 02:43:28 CEST

On Aug 14, 2007, at 16:59, Andreas S wrote:

> Oh, I apologize. I was using gvim for my editor. I thought it
> wouldn't make a
> difference between vim and gvim, apparently it does.
>
> After I switched my editor to vim, then it works correctly.
>
> With vim, commit just continues after I save and quit from vim.
> With gvim,
> svn pops up a gvim window for svn-commit.tmp file and, in the
> terminal, it
> asks for input:
>
> Log message unchanged or not specified
> a)bort, c)ontinue, e)edit

This means Subversion thinks the editor exited without changing the
svn-commit.tmp file, and it's letting you know that. Your choices are
to a)bort the commit, c)ontinue committing with the empty log
message, or try e)diting the log message again.

> It continues to commit after I hit 'c', as you know it. But I thought
> hitting c would do make svn to read that svn-commit.tmp file (I
> think I
> didn't hit 'c' too fast. I was able to look into the file first
> before I hit
> 'c'). Apparently not (is that right?)

Subversion does not attempt to re-read the svn-commit.tmp file,
because it thinks the editor has already exited.

> By the way, to answer the other question, yes, the commit was
> successful.
> I'm also on a network mounted drive.
>
> Out of curiosity, I tried emacs instead. svn pops up emacs, it
> doesn't ask
> for input and things work correctly as with vim. I guess I
> shouldn't use
> gvim with svn.
>
> Thank you very much, all of you.

You probably can use gvim, you just need to ask the developers of
gvim how to start gvim in a way that it waits until the file is saved
and closed before returning to the shell.

As a matter of comparison, I use this small script as my editor script:

#!/bin/sh
edit +1 --wait --resume "$@"

This opens my GUI text editor (TextWrangler) and waits for me to
edit, save and close the file before resuming the shell process that
called it. Works great. Something similar must be possible with gvim.
Check the documentation.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 15 02:42:20 2007

This is an archived mail posted to the Subversion Users mailing list.