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 C1E06200BC5 for ; Tue, 22 Nov 2016 09:51:30 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BEF2A160B0C; Tue, 22 Nov 2016 08:51:30 +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 1162C160B0A for ; Tue, 22 Nov 2016 09:51:29 +0100 (CET) Received: (qmail 69164 invoked by uid 500); 22 Nov 2016 08:51:29 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 69154 invoked by uid 99); 22 Nov 2016 08:51:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2016 08:51:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D385DC0D8D for ; Tue, 22 Nov 2016 08:51:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.32 X-Spam-Level: X-Spam-Status: No, score=-0.32 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rdj0KdaWMljP for ; Tue, 22 Nov 2016 08:51:25 +0000 (UTC) Received: from mail-qt0-f173.google.com (mail-qt0-f173.google.com [209.85.216.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id CB6935FB04 for ; Tue, 22 Nov 2016 08:51:25 +0000 (UTC) Received: by mail-qt0-f173.google.com with SMTP id n6so6545193qtd.1 for ; Tue, 22 Nov 2016 00:51:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lhbJUNU7YGQYvff8YrckjKGOOJCDLLbnOUsdffxPJoc=; b=0pEXoddbOJLCKAqrpdIp7RKuTzk1nx2GD2hdxQqAGRX35oar7LKxJ9+rvg/UAifB/W wtR2UT59kmwG5hS8aYcDNbNfUkNja7iEoikt7RminqPoqWyjx5xqpycA0ldAHBBzBkav AjU2j0XCjhvTbtU1HxKun0V/4X951jDS5DBmL58LniXkW6BcsNJm35h9wBvr4W2PQ4Ck 5LBzHJGL+qzaAgkU81EJk8p3aJyQgv4DWbK9a84DD8OXZMRZDQfeFNYFjD7T+9cx8tif W/B8W7J/CoSUg8mc0hreqpnczMstLzvkBb0ep1M5mmPofCuC3MxufPpU5KxxNZnu7MnS GQIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lhbJUNU7YGQYvff8YrckjKGOOJCDLLbnOUsdffxPJoc=; b=YrnIBAs9tzhyamaCxOumL+1EIFxdyH2/y0BzvPyYeJovp9AxkeAitaRzANhC2f/oEP px0o1byzxTt6O5m0fbi1j1t4QA6smk4CM/+m9kBJFTJLDxh9mGuJOWGO38KsBfAxweTa 8wj74hG4Bmhtzd8iWbNQ2EMwHf9I1NTiYi8Q9FcsSW4f+jqjxa3LXrzDfuCVOWP8Ihhu 5TrKksuVowAD1CTBwNjWGYJKAMoSPj9R4H3xdrVGXRuULGsvTHzTQIMmEgCNEmYcoHtL PtfJgjTf008ZvrGd9Ys4lhv1+LuGtD2b9aF63+Oz9L6qOPUaahvd8Kh9ckxuZpBjqssR Xzyg== X-Gm-Message-State: AKaTC015R3LTCkVeFj8LLffDYR7l3zKHamB3dEoDs2TR/z9GdiekxyQo9PVjXUE+BVhUeiKwsqUlsplkFDPpTw== X-Received: by 10.200.53.53 with SMTP id y50mr12396942qtb.127.1479804679551; Tue, 22 Nov 2016 00:51:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.55.102.81 with HTTP; Tue, 22 Nov 2016 00:50:59 -0800 (PST) In-Reply-To: References: From: Johan Corveleyn Date: Tue, 22 Nov 2016 09:50:59 +0100 Message-ID: Subject: Re: Adopting unversioned directory on svn up To: Olaf van der Spek Cc: "users@subversion.apache.org" Content-Type: text/plain; charset=UTF-8 archived-at: Tue, 22 Nov 2016 08:51:30 -0000 On Tue, Nov 22, 2016 at 8:56 AM, Olaf van der Spek wrote: > Hi, > > How does one adopt / merge the update from the repo into local > unversioned directories? > Using R marks the directory for deletion. > > # svn up /etc > Updating '/etc': > C /etc/php5 > A /etc/php5/cli > A /etc/php5/cli/conf.d > A /etc/php5/cgi > A . > Updated to revision 55. > Tree conflict on '/etc/php5' > > local dir unversioned, incoming dir add upon update > Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: h > > (r) - accept current working copy state > (p) - resolve the conflict later [postpone] > (q) - postpone all remaining conflicts > (h) - show this help (also '?') > Words in square brackets are the corresponding --accept option arguments. > > Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: When I know beforehand that I have a local unversioned directory that maps to a repos-directory that will be incoming when I update, I use the '--force' option for 'svn up'. That avoids the tree conflicts, and sort of "integrates" the existing files into your working copy. From 'svn help update': [[[ --force : handle unversioned obstructions as changes ]]] During the update you'll get 'E' notifications (for "Existed") for all the items that already exist. Your local files will not be overwritten by the repos-incoming version. After the update, when you run 'svn status', some files might show up as (M)odified (if they were different locally from the repos-incoming version), or not show up if they were identical. In your situation, after having already run the update, I'm not sure what's the best course of action. If it's a separate, new working copy, you might just throw away the '.svn' directory and start over (without touching / losing your local files). If it's part of a larger working copy ... not sure (definitely not "revert" without making a backup copy of your local files, or you might lose local uncommitted changes). -- Johan