subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <philip.mar...@wandisco.com>
Subject Re: Wrong state for SWITCHED items
Date Thu, 04 Apr 2013 10:41:32 GMT
Florin Avram <florin@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.

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download

Mime
View raw message