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 E4FBF1043F for ; Thu, 4 Apr 2013 13:10:01 +0000 (UTC) Received: (qmail 20945 invoked by uid 500); 4 Apr 2013 13:10:01 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 20297 invoked by uid 500); 4 Apr 2013 13:09:59 -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 20089 invoked by uid 99); 4 Apr 2013 13:09:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 13:09:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [82.77.173.100] (HELO mail.sync.ro) (82.77.173.100) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 13:09:53 +0000 Received: from [10.0.0.35] (unknown [10.0.0.35]) by mail.sync.ro (Postfix) with ESMTP id E9A00871; Thu, 4 Apr 2013 16:09:30 +0300 (EEST) Message-ID: <515D7B8B.10607@sync.ro> Date: Thu, 04 Apr 2013 16:09:31 +0300 From: Florin Avram User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Bert Huijben CC: users@subversion.apache.org Subject: Re: Wrong state for SWITCHED items References: <515D4E90.3090709@sync.ro> <87eheqwpb7.fsf@ntlworld.com> <042001ce312e$9b83b600$d28b2200$@qqmail.nl> In-Reply-To: <042001ce312e$9b83b600$d28b2200$@qqmail.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Thank you for your prompt reply. The exact behavior (just tested on my own): SVN 1.6: switched file - delete: works; - status: reported correctly (D + S); - commit: works (removes item from the branch URL, not from the parent directory URL); switched directory - delete: works; - status: reported wrong if directly on the switched directory ("svn status switchedDir" reports as D only), but works fine if requested on parent dir ("svn status ." reports "switchedDir" as D + S); - commit: works fine; SVN 1.7: switched file - delete: works; - status: loses S state, only D reported (both if "svn status" on file or on parent); - commit: same as SVN 1.6 for file; switched directory - delete:not working (previously mentioned error); I don't know how things work for SVN 1.8, since I do not test it until officially available. At this point, I assume it would be safer to not allow delete on switched items (especially if the switched status is lost) since the user might not be aware that commits something to another repository location. But, this will prevent a user from replacing the switched item (delete + add). Best Regards, Florin On 04.04.2013 15:19, Bert Huijben wrote: > >> -----Original Message----- >> From: MARTIN PHILIP [mailto:codematters@ntlworld.com] On Behalf Of >> Philip Martin >> Sent: donderdag 4 april 2013 12:42 >> To: Florin Avram >> Cc: users@subversion.apache.org >> Subject: Re: Wrong state for SWITCHED items >> >> Florin Avram writes: >> >>> Two things I've noticed: >>> >>> 1) svn status switched.txt => file reported as switched >>> >>> svn delete --keep-local switched.txt >>> svn status switched.txt => the file is reported as DELETED, but not as >>> SWITCHED anymore (although "svn info" indicates the correct URL from >>> the branch) >> I think that's a bug. In particular while info shows the switched URL >> commit will delete the unswitched URL. Combining switch with delete is >> always a problem, for example this old bug: >> http://subversion.tigris.org/issues/show_bug.cgi?id=1906 >> >>> 2) Also, why can I delete a switched file, but I cannot delete a >>> switched directory?! >>> cd wcRootDir >>> svn delete --keep-local switchedDirectory => svn: E155005: No >>> write-lock in 'D:\path\to\wcRootDir' >> That's a bug as well. Preventing the delete of a switched node may be a >> good idea but the error message should be better. > This error is caused by our 'anchor' rules. A switched directory doesn't use > its parent directory for many operations. (For a file it must always use the > directory). In this case we obtain the lock for the to be deleted node only, > while we delete a child from its ancestor. > > Is this 1.6 or 1.7? > > Bert