You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by John Szakmeister <jo...@szakmeister.net> on 2005/04/04 18:26:02 UTC

Re: [Issue 1532] Switch a file to a dir: can't switch it back to the file

maxb@tigris.org wrote:
> http://subversion.tigris.org/issues/show_bug.cgi?id=1532
> 
> 
> 
> User maxb changed the following:
> 
>                   What    |Old value                 |New value
> ================================================================================
>                Assigned to|issues@subversion         |maxb
> --------------------------------------------------------------------------------
> 
> 
> 
> 
> ------- Additional comments from maxb@tigris.org Mon Apr  4 09:10:10 -0700 2005 -------
> Actually, there is a good technical reason why this can't work.
> 
> For exactly the same reason that you cannot checkout a file, you cannot switch a
> file. That is because our WC format and code currently demand that files be
> direct children of the URL of their containing directory.
> 
> So, the "fix" for this issue is teach switch to maintain this invariant, which
> it currently is willing to break, thus trashing the working copy.
> 
> I am working on this.

Can we just make sure that the target and the switch target are of the
same type?  I see no reason why we should limit switch to just
directories unnecessarily.  I believe I may already have a patch that
does just this (I asked about what the community would like to do in the
past, but got no feedback, so I let it drop).

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org