[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Wrong state for SWITCHED items

From: Bert Huijben <bert_at_qqmail.nl>
Date: Thu, 4 Apr 2013 14:19:06 +0200

> -----Original Message-----
> From: MARTIN PHILIP [mailto:codematters_at_ntlworld.com] On Behalf Of
> Philip Martin
> Sent: donderdag 4 april 2013 12:42
> To: Florin Avram
> Cc: users_at_subversion.apache.org
> Subject: Re: Wrong state for SWITCHED items
>
> Florin Avram <florin_at_sync.ro> 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
Received on 2013-04-04 14:19:44 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.