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

Re: [PATCH] Fix a deprecation warning.

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 26 Oct 2009 17:34:38 +0100

On Mon, Oct 26, 2009 at 07:25:35PM +0530, Kannan wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Log:
> Resolve a deprecation warning.
>
> * subversion/svn/info-cmd.c
> (svn_cl__info): Use `svn_client_info3()'.
>
> Patch by: Kannan R <kannanr_at_collab.net>
 
> Index: subversion/svn/info-cmd.c
> ===================================================================
> --- subversion/svn/info-cmd.c (revision 40224)
> +++ subversion/svn/info-cmd.c (working copy)
> @@ -527,7 +527,7 @@
> && (peg_revision.kind == svn_opt_revision_unspecified))
> peg_revision.kind = svn_opt_revision_head;
>
> - err = svn_client_info2(truepath,
> + err = svn_client_info3(truepath,
> &peg_revision, &(opt_state->start_revision),
> receiver, NULL, opt_state->depth,
> opt_state->changelists, ctx, subpool);

Are you sure you don't need to update the receiver also?

svn_client_info2's docstring says:

/** Similar to svn_client_info3, but uses an svn_info_receiver_t instead of
 * a svn_info_receiver2_t.

Stefan

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2411436
Received on 2009-10-26 17:35:10 CET

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.