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

Re: Switching before committing

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-03-06 20:11:01 CET

Nick Gilbert wrote:
> Hi,
>
> Is it right that you can switch before you've committed? I just did it
> accidentally and I seemed to end up with a huge mess from which it
> seemed impossible to recover. In the end I had to checkout a new copy
> and apply all my changes from the branch again. Perhaps there should be
> a warning, telling you that you have uncommitted changes before it
> initiates the switch?

A switch is basically an update with a different url. Which means you
get the diffs between your working copy and the new url, which then get
applied to your working copy. But of course, as with an update, you can
get conflicts if you have local modifications.
There's no need for a warning here (just my opinion).

> Also, it seems a bit odd that you initiate the switch from a subfolder,
> it seems to check out a new copy to that subfolder rather than switching
> the whole working copy to that version. Surely if you switch in a
> subfolder, it should either just switch that subfolder or switch the
> whole working copy, but not checkout all the files from the root into
> the subfolder?

AFAIK Subversion already does this.
Can you please check if you entered the new url correctly and didn't
change the case of some letters? Because Subversion might take that as a
whole new url.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Mar 6 20:11:16 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.