You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Bill Soudan <bi...@soudan.net> on 2004/05/27 22:56:17 UTC

Switch breaks working copy bug?

'svn switch' seems to break your working copy under the following
circumstances:

1) you have a file exclusive to a branch in your current working copy,
let's call it file3
2) this file lives a few directory levels below root
3) you modify this file, leaving local modifications
4) you switch to a branch that does not contain this file.

At this point, svn switch reports "svn: Won't delete locally modified
file 'file3'", as expected, but then:

5) you switch back to the original branch

svn will report a "svn: File not found: revision '5', path
'/trunk/longer'".

I've attached a script that you can use to reproduce.  #2 above is key
-- if the file is in the root or only one level below root, the
operation works as expected.

Should I file an issue?

Bill

Re: Switch breaks working copy bug?

Posted by kf...@collab.net.
Bill Soudan <bi...@soudan.net> writes:
> 'svn switch' seems to break your working copy under the following
> circumstances:
> 
> 1) you have a file exclusive to a branch in your current working copy,
> let's call it file3
> 2) this file lives a few directory levels below root
> 3) you modify this file, leaving local modifications
> 4) you switch to a branch that does not contain this file.
> 
> At this point, svn switch reports "svn: Won't delete locally modified
> file 'file3'", as expected, but then:
> 
> 5) you switch back to the original branch
> 
> svn will report a "svn: File not found: revision '5', path
> '/trunk/longer'".
> 
> I've attached a script that you can use to reproduce.  #2 above is key
> -- if the file is in the root or only one level below root, the
> operation works as expected.
> 
> Should I file an issue?

Yes -- I believe this is a new bug ("new" in the sense that it's not
already filed, though check first, I could be mistaken).

Thanks for the excellent repro recipe!

-Karl


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org