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 95019EBC7 for ; Tue, 26 Feb 2013 16:29:44 +0000 (UTC) Received: (qmail 29990 invoked by uid 500); 26 Feb 2013 16:29:44 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 29955 invoked by uid 500); 26 Feb 2013 16:29:44 -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 29948 invoked by uid 99); 26 Feb 2013 16:29:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 16:29:44 +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, 26 Feb 2013 16:29:43 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 4B5C223889D7; Tue, 26 Feb 2013 16:29:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1450261 - /subversion/trunk/subversion/libsvn_client/relocate.c Date: Tue, 26 Feb 2013 16:29:24 -0000 To: commits@subversion.apache.org From: rhuijben@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130226162924.4B5C223889D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rhuijben Date: Tue Feb 26 16:29:23 2013 New Revision: 1450261 URL: http://svn.apache.org/r1450261 Log: * subversion/libsvn_client/relocate.c (validator_func): Replace another reimplementation of svn_client_get_repos_root with a call to this function. Modified: subversion/trunk/subversion/libsvn_client/relocate.c Modified: subversion/trunk/subversion/libsvn_client/relocate.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/relocate.c?rev=1450261&r1=1450260&r2=1450261&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_client/relocate.c (original) +++ subversion/trunk/subversion/libsvn_client/relocate.c Tue Feb 26 16:29:23 2013 @@ -100,13 +100,13 @@ validator_func(void *baton, if (! url_uuid) { apr_pool_t *sesspool = svn_pool_create(pool); - svn_ra_session_t *ra_session; - SVN_ERR(svn_client__open_ra_session_internal(&ra_session, NULL, url, NULL, - NULL, FALSE, TRUE, - b->ctx, sesspool)); + url_uuid = &APR_ARRAY_PUSH(uuids, struct url_uuid_t); - SVN_ERR(svn_ra_get_uuid2(ra_session, &(url_uuid->uuid), pool)); - SVN_ERR(svn_ra_get_repos_root2(ra_session, &(url_uuid->root), pool)); + SVN_ERR(svn_client_get_repos_root(&url_uuid->root, + &url_uuid->uuid, + url, b->ctx, + pool, sesspool)); + svn_pool_destroy(sesspool); }