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

Re: Bug: cleanup option

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-02-07 18:52:26 CET

gbjbaanb wrote:

> I have a project tree, and I needed to add a new project to it, so I copied an
> existing directory edited the files and then thought about adding the project to
> SVN. Of course the .svn directory had been copied as well, so I deleted it.
>
> The tortoise icons for the parent folder changed to a yellow exclamation, so I
> thought a cleanup would be in order to sort my working copy out. Unfortunately,
> I get the following error:
>
> "Subversion reported an error while doing a cleanup!
> <my folder> is not a working copy directory."

The yellow exclamation mark indicates either a conflict or an
obstruction or something else which is bad. But it at least indicates
that something below that folder is versioned (or the parent folder of
that folder thinks it's versioned).

> I would have thought that a cleanup command would fix such an issue one way or
> the other - the new folder has no .svn directory (I checked twice), and I can't
> imagine the parent .svn has a reference to the new folder because it hasn't been
> added to SVN yet.

Cleanup does what it says: it cleans up after an interrupted command. It
is not a magic command which can repair any damage you did to a working
copy.

> In any case, I'd expect cleanup to either ignore the new folder, and restore the
> existing folders to their state as if I'd checked them out of SVN. Otherwise,
> what's the point of the cleanup command if it doesn't really do any cleaningup?
>
> One thing that is interesting, the new folder has a yellow exclamation icon too,
> but when I right click it (I do not get the option to cleanup this directory),
> and try to 'add' it, I get the following error:
>
> "directory <c:\new folder\.svn> containing working copy admin area is missing.
> Please execute the "Cleanup" command."
>
> There is no cleanup option on the menu. So I cannot cleanup the parent, or the
> folder itself. Bah! :)

It seems you haven't really deleted all .svn dirs of your project which
you copied over.

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 Wed Feb 7 18:52:31 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.