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

Re: Switch bug

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-11-14 19:12:15 CET

Kent Karlsson <kent@popwire.com> writes:

> Ive found a rather anoying switch-bug that I couldnt find in the
> issuetracker. It seems it deletes parts of the name of a file when
> switching to a branch where the file never existed and afterwards it
> seems to think that it really is a part of that branch.

Yikes! Something is seriously wrong. This script

REPO=file://${PWD}/repo
svnadmin create repo
svn mkdir $REPO/trunk $REPO/branch
svn cp $REPO/trunk $REPO/branch/b1
svn mkdir $REPO/trunk/foo
svn co $REPO/trunk wc
ls wc
svn switch $REPO/branch/b1 wc

gives this error

../svn/subversion/libsvn_subr/io.c:682: (apr_err=2, src_err=0)
svn: No such file or directory
svn: svn_io_set_file_read_write: failed to set file 'wc/.svn/log' read-write

and

$ ls wc
ls: wc: No such file or directory

it's deleted my working copy.

Please raise an issue.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 14 19:13:01 2002

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.