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