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

Re: svn commit: r17834 - in trunk/subversion: include libsvn_client

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2005-12-18 22:31:36 CET

On Sun, 18 Dec 2005 dionisos@tigris.org wrote:

> Log:
> Implement an apr-file-forwarding stream which adheres to the resource
> ownership model recently discussed on the list.
>
> Note:
> This commit does not deprecate svn_stream_from_aprfile, because
> that routine is the apr file equivalent of svn_stream_disown().
>
> * subversion/include/svn_io.h
> * subversion/libsvn_subr/stream.c
> (svn_stream_from_aprfile2): New. Function to create a stream which
> closes the underlying apr file.
>
Please don't name the new function svn_stream_from_aprfile2! How is one
supposed to understand which function is which? Either keep the name and
deprecate the old function and use svn_stream_disown when that semantic is
wanted, or add a boolean flag to the new function and deprecate the old
one.

> Modified: trunk/subversion/include/svn_io.h
> Url: http://svn.collab.net/viewcvs/svn/trunk/subversion/include/svn_io.h?rev=17834&p1=trunk/subversion/include/svn_io.h&p2=trunk/subversion/include/svn_io.h&r1=17833&r2=17834
> ==============================================================================
> --- trunk/subversion/include/svn_io.h (original)
> +++ trunk/subversion/include/svn_io.h Sun Dec 18 07:35:35 2005
> @@ -559,13 +559,26 @@
> */
> svn_stream_t *svn_stream_disown (svn_stream_t *stream, apr_pool_t *pool);
>
> -/** Convenience function for creating streams which operate on APR
> - * files. For convenience, if @a file is NULL then svn_stream_empty(pool)
> - * is returned. Note that the stream returned by these operations is not
> - * considered to "own" the underlying file, meaning that svn_stream_close()
> - * on the stream will not close the file.
> +/** Function to create streams which operate on APR * files.

These "Function to" sound odd to me; that shouldn't be part of the
docstring. (Same below.)

Thanks,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 18 22:32:25 2005

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.