Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 717CDDBB8 for ; Thu, 15 Nov 2012 05:41:37 +0000 (UTC) Received: (qmail 87316 invoked by uid 500); 15 Nov 2012 05:41:36 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 87292 invoked by uid 500); 15 Nov 2012 05:41:36 -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 87255 invoked by uid 99); 15 Nov 2012 05:41:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 05:41:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [66.111.4.29] (HELO out5-smtp.messagingengine.com) (66.111.4.29) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 05:41:27 +0000 Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 6128B2058B; Thu, 15 Nov 2012 00:41:07 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute2.internal (MEProxy); Thu, 15 Nov 2012 00:41:07 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=mesmtp; bh= 62Uw/OPWborNVgb48Cy9ldP/g84=; b=fOzGolzYDPnETkLDDK6qbCMuyLwm+v94 HuWrjgsODISumsrW38Os6yMuCgL/S/d+0Vt1gTnAKN1MUI9F94YNwlPKETkiRaDt jF8wSpylR7dKfs2oh5OcIE22nXwGogd2RBSlysHQ8Un+BoRFbYj89Bc4PqY4jV2R vOJ1OSR5vKw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=smtpout; bh=62Uw/OPWborNVgb48Cy9ldP/g84=; b=G9YYPQGCA91mLy/loZGMxlYaYoai vET5eK+bS4UhlraLZDri72Ket6QXYyX0LF4HzmiHTx31mCDquexLZYFUIy4N3eKn aE0v0SlBZw8/FxvUfkEgYFOrvp5ZfAR8F6x+kMlClkCISSuCCDTnIVI26DScU5z8 827G78P3fiFH5xs= X-Sasl-enc: cCdIzdEW9G24+RsLAYSk2Mm2Ly9KRkG+eksfYBWNBed8 1352958066 Received: from lp-shahaf.local (unknown [109.64.243.118]) by mail.messagingengine.com (Postfix) with ESMTPA id 8738A8E04F2; Thu, 15 Nov 2012 00:41:06 -0500 (EST) Date: Thu, 15 Nov 2012 07:41:03 +0200 From: Daniel Shahaf To: Marc Schlinger Cc: "users@subversion.apache.org" Subject: Re: modifyng symlinks Message-ID: <20121115054103.GE2953@lp-shahaf.local> References: <4CABA54457D642419D9D07136C83F89F0D716AC5@SN2PRD0510MB360.namprd05.prod.outlook.com> <20121115051246.GD2953@lp-shahaf.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121115051246.GD2953@lp-shahaf.local> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Checked: Checked by ClamAV on apache.org Daniel Shahaf wrote on Thu, Nov 15, 2012 at 07:12:46 +0200: > Marc Schlinger wrote on Wed, Nov 14, 2012 at 10:52:52 +0000: > > Hello, > > > > I'm using : > > > > svn, version 1.7.7 (r1393599) > > compiled Nov 7 2012, 19:23:31 > > > > on a debian host. > > > > I am trying to create and apply a patch on a repos with the new svn commands: svn diff and svn patch. > > > > The commit is, for what matters, changing the target of a symlink. > > The patch section related to my symlink looks like this: > > > > > > Modified: folder/symlink > > =================================================================== > > --- folder/symlink 2012-10-18 10:56:32 UTC (rev 76023) > > +++ folder/symlink 2012-10-18 11:25:32 UTC (rev 76024) > > @@ -1 +1 @@ > > -link file > > \ No newline at end of file > > +link other_file > > \ No newline at end of file > > > > > > Since I'm on a linux host my symlink file is really a symlink. > > This way "svn patch" is actually trying to modify "folder/file" instead of editing file pointed by "folder/symlink". > > > > Is this a known behaviour ? > > > > I don't recall a previous report of this, and I can reproduce it with trunk: > > % $svn patch 1 > subversion/svn/patch-cmd.c:91: (apr_err=2) > subversion/libsvn_client/patch.c:2987: (apr_err=2) > subversion/libsvn_client/patch.c:2892: (apr_err=2) > subversion/libsvn_client/patch.c:1915: (apr_err=2) > subversion/libsvn_client/patch.c:919: (apr_err=2) > subversion/libsvn_subr/io.c:3193: (apr_err=2) > svn: E000002: Can't open file '/home/danielsh/src/svn/t1/wc/iota': No such file or directory > zsh: exit 1 $svn patch 1 > > (where the patch changes "link foo" to "link bar" in the file ^/iota) > I've added a regression test for this: http://svn.apache.org/r1409652 > > > Regards, > > Marc Schlinger > > > > > > > > > >