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

Re: [TSVN] Rename or delete causes chaos

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-05-11 21:30:09 CEST

Per Lindberg wrote:
> When I delete or rename a sub-directory in my local Subversioned
> project directory, (without using the TortoiseSVN commands for this)
> TortoiseSVN gets totally confused. The result is Confusion and Chaos.

Yes, but you know the old saying: garbage in - garbage out.

> And no matter what I do, TortoiseSVN can't figure out that a new directory
> should be included. I have tried cleanup, add, and about everything else.

Yes. TortoiseSVN hasn't a crystal ball built in to figure out what you want.

> I attach an example of one of the error dialog boxes that can occur.
> (No, following the advice in it does not help.).
>
> Is this normal? A bug? A feature? Shouldn't TortoiseSVN be able to
> figure out for itself what has changed in my subversioned directory tree
> and simply commit those changes when I ask it?
>
> I can't see why TortoiseSVN needs special commands to rename
> and delete files and folders. Suppose an IDE (Integrated Development
> Environment) also has ideas about how to rename and delete stuff.
> That would cause a catch-22 situation.

Oh, have you ever tried to rename/delete something *outside* your IDE
and then let the IDE figure out what you did? I don't think so.

Now, think about what you ask of TSVN (or Subversion):
- you rename a folder from 'folderA' to 'folderB'
- you don't tell Subversion that, you just renamed the folder

So, what should Subversion do now?
- 'folderA' doesn't exist anymore
- there's a new 'folderB'

1. 'folderA' was renamed to 'folderB'
2. 'folderA' was obsolete and therefore deleted, 'folderB' is new and
has nothing to do with 'folderA'.

So, two choices which Subversion must never just choose one. Only *you*
know what you did.
In case 2), there's even more problems: should the 'folderB' now be
added to version control or not? Is that folder important or generated?

> Am I doing something wrong, or are these known limitations?
> If so, what should I do to get around the problem?

Yes, you're doing something wrong. And yes, these are very well known
limitations. And I guess you already know how to get around the problem:
as you already discovered, TortoiseSVN has special commands to delete
and rename files/folders. Use them!

Oh, and do yourself a favour and read the docs.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed May 11 23:42:49 2005

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.