Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 89375200B6C for ; Sun, 28 Aug 2016 18:15:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 87C9B160AB4; Sun, 28 Aug 2016 16:15:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CDFBF160AA6 for ; Sun, 28 Aug 2016 18:15:35 +0200 (CEST) Received: (qmail 4726 invoked by uid 500); 28 Aug 2016 16:15:35 -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 4715 invoked by uid 99); 28 Aug 2016 16:15:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Aug 2016 16:15:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A00961803EA for ; Sun, 28 Aug 2016 16:15:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.426 X-Spam-Level: X-Spam-Status: No, score=-0.426 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id LBMx6jRbImCZ for ; Sun, 28 Aug 2016 16:15:33 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2AA325F242 for ; Sun, 28 Aug 2016 16:15:33 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 500A7E0054 for ; Sun, 28 Aug 2016 16:15:32 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 473963A031D for ; Sun, 28 Aug 2016 16:15:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1758129 - /subversion/trunk/subversion/libsvn_wc/conflicts.c Date: Sun, 28 Aug 2016 16:15:32 -0000 To: commits@subversion.apache.org From: luke1410@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160828161532.473963A031D@svn01-us-west.apache.org> archived-at: Sun, 28 Aug 2016 16:15:36 -0000 Author: luke1410 Date: Sun Aug 28 16:15:32 2016 New Revision: 1758129 URL: http://svn.apache.org/viewvc?rev=1758129&view=rev Log: Fix issue #4647 by resolving the error case for binary file conflicts selecting to use the full local version, by allowing using the local file, if no merged file is present. * subversion/libsvn_wc/conflicts.c (build_text_conflict_resolve_items): in case mine_abspath is null, take local_abspath instead in case of svn_wc_conflict_choose_mine_full Suggested by: stsp Approved by: rhujiben Modified: subversion/trunk/subversion/libsvn_wc/conflicts.c Modified: subversion/trunk/subversion/libsvn_wc/conflicts.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/conflicts.c?rev=1758129&r1=1758128&r2=1758129&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_wc/conflicts.c (original) +++ subversion/trunk/subversion/libsvn_wc/conflicts.c Sun Aug 28 16:15:32 2016 @@ -1623,7 +1623,14 @@ build_text_conflict_resolve_items(svn_sk } case svn_wc_conflict_choose_mine_full: { - install_from_abspath = mine_abspath; + /* In case of selecting to resolve the conflict choosing the full + own file, allow the text conflict resolution to just take the + existing local file if no merged file was present (case: binary + file conflicts do not generate a locally merge file). + */ + install_from_abspath = mine_abspath + ? mine_abspath + : local_abspath; break; } case svn_wc_conflict_choose_theirs_conflict: