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

Re: [jira] [Commented] (SVN-1532) Switch a file to a dir: can't switch it back to the file

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 16 Dec 2019 04:56:58 +0000

Nathan Hartman (Jira) wrote on Sun, 15 Dec 2019 20:12 +00:00:
> Two different fixes have been suggested above:
>
> (1) Several people: Open the editor on the parent rather than the node itself.
>
> or
>
> (2) Max Oliver Bowsher: "For exactly the same reason that you cannot
> checkout a file, you cannot switch a file. ... So, the 'fix' for this
> issue is teach switch to maintain this invariant..."
>
> (Personally, Bowsher's idea makes more sense to me.)

I don't see how the two cases are analogous.

'svn checkout $URL foo' creates foo/.svn/. To do so, it requires that
foo/ be a directory.

However, it's perfectly meaningful and useful to do 'svn switch
^/subversion/branches/1.13.x/STATUS STATUS' in a working copy of the
1.13.x-r42 branch. Moreover, why _shouldn't_ it be possible to switch a file
to a directory? Directory entries can be either directories or files, but when we
tell a directory that its child "iota"'s URL should be <a given value>, why does it
matter whether the new URL points to a node of the same kind?

Cheers,

Daniel

P.S. Max is a full committer, like you, so you can use first names :)
Received on 2019-12-16 05:57:33 CET

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

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