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

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

From: John Szakmeister <john_at_szakmeister.net>
Date: 2005-04-04 20:26:02 CEST

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).


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 4 20:28:19 2005

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