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

Re: svn commit: r33428 - in trunk/subversion: include libsvn_wc

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta_at_gmail.com>
Date: Sat, 4 Oct 2008 02:11:34 +0200

2008-10-04 02:04:15 gstein_at_tigris.org napisaƂ(a):
> Author: gstein
> Date: Fri Oct 3 17:04:14 2008
> New Revision: 33428
>
> Log:
> Path-based APIs are bad -- it makes encapsulation much more difficult.
> Switch to stream-based APIs.
>
> * subversion/include/svn_wc.h:
> (svn_wc_get_pristine_contents): new declaration to return a stream of the
> pristine file's contents
> (svn_wc_get_pristing_copy_path): deprecated.
>
> * subversion/libsvn_wc/adm_ops.c:
> (svn_wc_get_pristine_contents): new function
>
> Modified:
> trunk/subversion/include/svn_wc.h
> trunk/subversion/libsvn_wc/adm_ops.c
>
> Modified: trunk/subversion/include/svn_wc.h
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/include/svn_wc.h?pathrev=33428&r1=33427&r2=33428
> ==============================================================================
> --- trunk/subversion/include/svn_wc.h Fri Oct 3 17:01:54 2008 (r33427)
> +++ trunk/subversion/include/svn_wc.h Fri Oct 3 17:04:14 2008 (r33428)
> @@ -4589,12 +4589,26 @@ svn_wc_merge_prop_diffs(svn_wc_notify_st
> apr_pool_t *pool);
>
>
> -
> -/** Given a @a path to a wc file, return a @a pristine_path which points to a
> - * pristine version of the file. This is needed so clients can do
> +/** Given a @a path to a wc file, return a stream to the @a contents of
> + * the pristine copy of the file. This is needed so clients can do
> * diffs. If the WC has no text-base, return a @c NULL instead of a
> - * path.
> + * stream.
> + *
> + * @since New in 1.6.
> + */
> +svn_error_t *
> +svn_wc_get_pristine_contents(svn_stream_t **contents,
> + const char *path,
> + apr_pool_t *result_pool,
> + apr_pool_t *scratch_pool);
> +
> +
> +/** Returns a path to the pristine copy of @a path. Should use
> + * svn_wc_get_pristine_contents() instead.
> + *
> + * @deprecated Provided for backwards compatibility with the 1.0 API.

s/1.0/1.5/

> */
> +SVN_DEPRECATED
> svn_error_t *
> svn_wc_get_pristine_copy_path(const char *path,
> const char **pristine_path,

-- 
Arfrever Frehtes Taifersar Arahesis

Received on 2008-10-04 02:14:46 CEST

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.