[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: Greg Stein <gstein_at_gmail.com>
Date: Fri, 3 Oct 2008 17:58:38 -0700

Well... that function was introduced in the 1.0 API, so we're
maintaining compatibility ALL the way back. And by definition, compat
with 1.0 means compat with 1.5.

Cheers,
-g

On Fri, Oct 3, 2008 at 5:11 PM, Arfrever Frehtes Taifersar Arahesis
<arfrever.fta_at_gmail.com> wrote:
> 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:58:56 CEST

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