Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5AAC9D98B for ; Tue, 14 Aug 2012 20:51:31 +0000 (UTC) Received: (qmail 31218 invoked by uid 500); 14 Aug 2012 20:51:31 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 31199 invoked by uid 500); 14 Aug 2012 20:51:31 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 31190 invoked by uid 99); 14 Aug 2012 20:51:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 20:51:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 20:51:29 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B673A23889FA; Tue, 14 Aug 2012 20:50:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1373082 - /subversion/branches/inheritable-props/subversion/libsvn_ra_serf/inherited_props.c Date: Tue, 14 Aug 2012 20:50:46 -0000 To: commits@subversion.apache.org From: pburba@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120814205046.B673A23889FA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: pburba Date: Tue Aug 14 20:50:46 2012 New Revision: 1373082 URL: http://svn.apache.org/viewvc?rev=1373082&view=rev Log: On the inheritable-props branch: Fix serf implementation of svn_ra_get_inherited_props which broke after a recent sync with trunk. * subversion/libsvn_ra_serf/inherited_props.c (svn_ra_serf__get_inherited_props): Correct comment which referred to the wrong report. Follow the lead of r1334446 or r1336471. Modified: subversion/branches/inheritable-props/subversion/libsvn_ra_serf/inherited_props.c Modified: subversion/branches/inheritable-props/subversion/libsvn_ra_serf/inherited_props.c URL: http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_ra_serf/inherited_props.c?rev=1373082&r1=1373081&r2=1373082&view=diff ============================================================================== --- subversion/branches/inheritable-props/subversion/libsvn_ra_serf/inherited_props.c (original) +++ subversion/branches/inheritable-props/subversion/libsvn_ra_serf/inherited_props.c Tue Aug 14 20:50:46 2012 @@ -267,8 +267,8 @@ create_iprops_body(serf_bucket_t **bkt, return SVN_NO_ERROR; } -/* Request a mergeinfo-report from the URL attached to SESSION, - and fill in the MERGEINFO hash with the results. */ +/* Request a inherited-props-report from the URL attached to RA_SESSION, + and fill the IPROPS array hash with the results. */ svn_error_t * svn_ra_serf__get_inherited_props(svn_ra_session_t *ra_session, apr_array_header_t **iprops, @@ -277,16 +277,14 @@ svn_ra_serf__get_inherited_props(svn_ra_ apr_pool_t *pool) { svn_error_t *err, *err2; - int status_code; iprops_context_t *iprops_ctx; svn_ra_serf__session_t *session = ra_session->priv; svn_ra_serf__handler_t *handler; svn_ra_serf__xml_parser_t *parser_ctx; - const char *relative_url, *basecoll_url; - const char *target_url; + const char *req_url; - SVN_ERR(svn_ra_serf__get_stable_url(&path, + SVN_ERR(svn_ra_serf__get_stable_url(&req_url, NULL /* latest_revnum */, session, NULL /* conn */, @@ -294,8 +292,6 @@ svn_ra_serf__get_inherited_props(svn_ra_ revision, pool, pool)); - target_url = svn_path_url_add_component2(basecoll_url, relative_url, pool); - iprops_ctx = apr_pcalloc(pool, sizeof(*iprops_ctx)); iprops_ctx->done = FALSE; iprops_ctx->repos_root_url = session->repos_root_str; @@ -312,12 +308,13 @@ svn_ra_serf__get_inherited_props(svn_ra_ handler = apr_pcalloc(pool, sizeof(*handler)); handler->method = "REPORT"; - handler->path = target_url; + handler->path = req_url; handler->conn = session->conns[0]; handler->session = session; handler->body_delegate = create_iprops_body; handler->body_delegate_baton = iprops_ctx; handler->body_type = "text/xml"; + handler->handler_pool = pool; parser_ctx = apr_pcalloc(pool, sizeof(*parser_ctx)); @@ -335,7 +332,7 @@ svn_ra_serf__get_inherited_props(svn_ra_ err = svn_ra_serf__context_run_wait(&iprops_ctx->done, session, pool); - err2 = svn_ra_serf__error_on_status(status_code, handler->path, + err2 = svn_ra_serf__error_on_status(handler->sline.code, handler->path, handler->location); if (err2) {