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 77972EBE6 for ; Fri, 7 Dec 2012 16:57:20 +0000 (UTC) Received: (qmail 28502 invoked by uid 500); 7 Dec 2012 16:57:20 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 28436 invoked by uid 500); 7 Dec 2012 16:57:19 -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 28421 invoked by uid 99); 7 Dec 2012 16:57:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 16:57:19 +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; Fri, 07 Dec 2012 16:57:17 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5B84923889FD; Fri, 7 Dec 2012 16:56:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1418392 - /subversion/trunk/subversion/tests/libsvn_wc/utils.c Date: Fri, 07 Dec 2012 16:56:55 -0000 To: commits@subversion.apache.org From: julianfoad@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121207165656.5B84923889FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: julianfoad Date: Fri Dec 7 16:56:54 2012 New Revision: 1418392 URL: http://svn.apache.org/viewvc?rev=1418392&view=rev Log: * subversion/tests/libsvn_wc/utils.c (sbox_wc_resolved, sbox_wc_resolve): Use only libsvn_wc functions and avoid libsvn_client, as this is libsvn_wc test and it's easy to do so. Modified: subversion/trunk/subversion/tests/libsvn_wc/utils.c Modified: subversion/trunk/subversion/tests/libsvn_wc/utils.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_wc/utils.c?rev=1418392&r1=1418391&r2=1418392&view=diff ============================================================================== --- subversion/trunk/subversion/tests/libsvn_wc/utils.c (original) +++ subversion/trunk/subversion/tests/libsvn_wc/utils.c Fri Dec 7 16:56:54 2012 @@ -321,22 +321,24 @@ sbox_wc_update(svn_test__sandbox_t *b, c svn_error_t * sbox_wc_resolved(svn_test__sandbox_t *b, const char *path) { - svn_client_ctx_t *ctx; - - SVN_ERR(svn_client_create_context2(&ctx, NULL, b->pool)); - return svn_client_resolve(sbox_wc_path(b, path), svn_depth_infinity, - svn_wc_conflict_choose_merged, ctx, b->pool); + return sbox_wc_resolve(b, path, svn_wc_conflict_choose_merged); } svn_error_t * sbox_wc_resolve(svn_test__sandbox_t *b, const char *path, svn_wc_conflict_choice_t conflict_choice) { - svn_client_ctx_t *ctx; - - SVN_ERR(svn_client_create_context2(&ctx, NULL, b->pool)); - return svn_client_resolve(sbox_wc_path(b, path), svn_depth_infinity, - conflict_choice, ctx, b->pool); + SVN_ERR(svn_wc__resolve_conflicts(b->wc_ctx, sbox_wc_path(b, path), + svn_depth_infinity, + TRUE /* resolve_text */, + "" /* resolve_prop (ALL props) */, + TRUE /* resolve_tree */, + conflict_choice, + NULL, NULL, /* conflict func */ + NULL, NULL, /* cancellation */ + NULL, NULL, /* notification */ + b->pool)); + return SVN_NO_ERROR; } svn_error_t *