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

Re: `svn diff' progress

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2001-12-18 20:18:00 CET

cmpilato@collab.net writes:

> Philip Martin <philip@codematters.co.uk> writes:
>
> > It would be better to have a platform independent interface to a
> > "temporary area". Something that would allow one to create a temporary
> > directory with some sort of random name. An addition to apr perhaps?
>
> Yep. This would be better. In fact, there is an issue logged already
> against svnlook that sez it should also be using such a "temporary
> area" once APR exposes such a thing.

FWIW, libsvn_client populates a vtable of callbacks for the RA layer
to use. One of these callbacks is a function for creating a temporary
file within the working copy admin area.

The callback used is a public libsvn_wc function:

/* Create a unique temporary file in administrative tmp/ area of
   directory PATH. Return a handle in *FP.
   
   The flags will be APR_WRITE | APR_CREATE | APR_EXCL | APR_DELONCLOSE.

   This means that as soon as FP is closed, the tmp file will vanish. */
svn_error_t *
svn_wc_create_tmp_file (apr_file_t **fp,
                        svn_stringbuf_t *path,
                        apr_pool_t *pool);

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:53 2006

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.