You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Arild Fines <ar...@broadpark.no> on 2005/04/24 21:12:23 UTC
svn switch lets you use a nonexistent URL?
[[
T:\testwc>dir /b
file.txt
T:\testwc>svn info file.txt
Path: file.txt
Name: file.txt
URL: file:///testrepos/file.txt
Repository UUID: a02db40f-b66d-504c-abcd-abcdbd9feefa
Revision: 1
Node Kind: file
Schedule: normal
Last Changed Author: Arild
Last Changed Rev: 1
Last Changed Date: 2005-04-24 23:03:22 +0200
Text Last Updated: 2005-04-24 23:03:16 +0200
Checksum: d41d8cd98f00b204e9800998ecf8427e
T:\testwc>svn ls file:///testrepos
file.txt
T:\testwc>svn switch file:///testrepos/nonexistent.txt file.txt
D file.txt
Updated to revision 1.
T:\testwc>dir /b
file.txt
T:\testwc>svn up
svn: Failed to add file 'file.txt': object of the same name already
exists
]]
Is this a bug? Surely you should get an error if you try to switch to an
URL that doesn't exist? And why didn't the local file actually get
deleted?
--
Arild
AnkhSVN: http://ankhsvn.tigris.org
Blog: http://ankhsvn.com/blog
IRC: irc://irc.freenode.net/ankhsvn
"The problem in the world today is communication. Too much
communication." -- Homer Simpson
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn switch lets you use a nonexistent URL?
Posted by Philip Martin <ph...@codematters.co.uk>.
Arild Fines <ar...@broadpark.no> writes:
> T:\testwc>svn ls file:///testrepos
> file.txt
>
> T:\testwc>svn switch file:///testrepos/nonexistent.txt file.txt
> D file.txt
> Updated to revision 1.
> Is this a bug? Surely you should get an error if you try to switch to an
> URL that doesn't exist?
Possibly. It looks a bit like issue 1906 and I don't know how to fix
that.
> And why didn't the local file actually get
> deleted?
It does when I try it?
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org