You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Charles Doucette <cd...@cornerstonetech.com> on 2005/03/10 20:58:17 UTC

TortoiseSVN switch deletes all non modified files!!!???

Our company was having problems with VSS on Windows XP.
I encouraged them to try SVN (and TortoiseSVN).
We installed TortoiseSVN 1.1.3 (and some people including myself
installed the svn command line client 1.1.3).
 
We were able to successfully import a VSS database into SVN with
vss2svn.
I wanted to layout my repository with /trunk, /branches, and /tags
initially;
but, the documentation for vss2svn advised against that if I wanted to
use --setdates (you must start at revision 0).
I forgot to add the top level directories immediately after the
conversion and  and before people started to use it.
Recently, someone wanted to start a branch and I was forced to create
/trunk, /branches, and /tags
(and move everything from the root directory under trunk).
 
I naively thought I could just do a Relocate (svn switch -relocate
http://source/svn/repos http://source/svn/repos/trunk);
however, that failed miserably. I had to relocate back to what I had
before and then do a Switch.
That seemed to work fine.
 
Today, I had my colleague do a switch (same as above). I told her that
nothing visible should change - only updates to the administrative
directories.
 
When it was done - it said something was locked and you must do a
cleanup. I told her to do a cleanup.
 
Later, almost all of her files and most of the administrative
directories were missing!!
 
This is a serious failure and undermines my confidence in this tool (as
well as my colleagues).
 
I'm not sure if it is possible to diagnose or reproduce (and we wouldn't
want to try).
 
Chuck
 

Re: [TSVN] TortoiseSVN switch deletes all non modified files!!!???

Posted by SteveKing <st...@gmx.ch>.
Charles Doucette wrote:
> Our company was having problems with VSS on Windows XP.
> I encouraged them to try SVN (and TortoiseSVN).
> We installed TortoiseSVN 1.1.3 (and some people including myself 
> installed the svn command line client 1.1.3).
>  
> We were able to successfully import a VSS database into SVN with vss2svn.
> I wanted to layout my repository with /trunk, /branches, and /tags 
> initially;
> but, the documentation for vss2svn advised against that if I wanted to 
> use --setdates (you must start at revision 0).
> I forgot to add the top level directories immediately after the 
> conversion and  and before people started to use it.
> Recently, someone wanted to start a branch and I was forced to create 
> /trunk, /branches, and /tags
> (and move everything from the root directory under trunk).
>  
> I naively thought I could just do a Relocate (svn switch -relocate 
> http://source/svn/repos http://source/svn/repos/trunk);
> however, that failed miserably. I had to relocate back to what I had 
> before and then do a Switch.
> That seemed to work fine.

Relocate is _ONLY_ for cases where your URL to the server changes, e.g. 
if the IP address changes. Since relocate simply rewrites the URL 
entries in the .svn directories, this can be fatal if you use it wrong.

And switch doesn't really work here either. You moved some folders 
around (I assume from / to /trunk). Then you simply should UPDATE your 
working copy after that.

> Today, I had my colleague do a switch (same as above). I told her that 
> nothing visible should change - only updates to the administrative 
> directories.

A switch makes your working copy look like a checkout from the switch 
target, including your local modifications (i.e. you could get a conflict).

> When it was done - it said something was locked and you must do a 
> cleanup. I told her to do a cleanup.

Seems there were some unversioned files in the way?
I'm sure there were some other error messages shown before that. Do you 
know what these were?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org

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