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

Re: [Issue 964] Changed - Temporary file created for $EDITOR is added to repository on import.

From: <cmpilato_at_collab.net>
Date: 2002-11-13 18:49:55 CET

Colin Watson <cjwatson@flatline.org.uk> writes:

> On Wed, Nov 13, 2002 at 09:44:10AM -0600, Karl Fogel wrote:
> > Note that others have pointed out a directly conflicting itch, which
> > is to have the tmpfile in their local directory. This is not only so
> > it's conveniently available, but also so one will know it cannot be
> > lost due to system sweep (sometimes an automated process sweeps /tmp
> > of files older than X weeks or whatever).
> >
> > For example, suppose you commit using $EDITOR and then walk out the
> > door to go on vacation. The commit fails. You come back three weeks
> > later, see the error message on your screen, and go looking for the
> > log message file. Whups, sorry, svn put it in /tmp, so now it's gone,
> > and you have to rewrite it.
>
> Maybe that kind of thing could be solved by outputting the attempted log
> message after a failed commit?

The problem with doing this is that you now have Subversion attempting
to perform a non-trivial operation (disk file i/o, as opposed to
something easier like a printf() to the screen) while recovering from
a failure -- a failure that could have occured for any reason, not the
least of which might be: "unable to write to disk".

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 13 18:53:29 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.