[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: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-11-13 16:44:10 CET

cmpilato@collab.net writes:
> Cluttering with tmpfiles? Okay, so my use of "fixes all the possible
> problems" doesn't include your concern that tmpfiles are left
> (apparently at some ridiculous rate, either because you constantly
> fail to commit successfully, or because there are other problems in
> Subversion) in your home directory. I can accept that as a legitimate
> itch.

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.

Obviously, the vacation example is a fantasy, but in real life
interruptions do happen, and you may have to walk away from your
computer for an arbitrary amount of time. We should never be storing
the *only* copy of user-generated data in /tmp.

When other programs use /tmp, they're usually storing derived data
there. If the operation is interrupted, and the file left in /tmp is
either never found or is cleaned out by a broom-bot, it's not a big
deal.

But this case is different. This file is our only record of the
user's log message. In a complex commit, it could represent a few
hours of work. /tmp is the wrong place for important data like that.

> We've long agreed that APR temp directory support is Good Thing --
> there's no question there. But as an aside, I'm dying to know what
> Subversion, or you, is doing so wrong that your home directory is
> "cluttered" with tmpfiles. I never have more than one
> Subversion-related tmpfile outside of a .svn directory at a time. Is
> anyone else experiencing this problematic cluttering?

+1 on APR temp directory support, but not for this use.

I'm also curious what's wrong with Eric's Subversion; I've never had a
tmpfile cluttering problem in my working copy either.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 13 17:18:35 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.