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

RE: Removing folder from TSVN

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Thu, 7 Oct 2010 14:38:36 -0400

> >You have to use the TSVN delete command and then commit the
> delete.
>
> My experiences, based on a similar if not exactly the same desire,
> on wanting to tidy up my working copy by deleting unwanted files
> and folders *from the Working Copy* is that you can't directly do
> that.
>
> TSVN has a Delete command that its intention is that you want the
> file or folder deleted from the project - that is, deleted from the
> repository as well as your working copy. (I don't know if the
> folder will be deleted on any other working copy based off that
> respository on the next update.)

Yes it does.

> The help file suggests that you can remove a folder in working copy
> from version control by exporting the folder to itself (TSVN Help
> Ch.4.26.1). The .svn folders will be removed and you can delete
> locally. Will the parent folders of the newly unversioned folder
> know about the unversioning? Don't know. Certainly the working copy
> will see the now un-ignored, unversioned folders/files and will put
> a black circle with a white question mark on the folder icon.
>
> Locally deleting a folder/file under version control results in, at
> best, a missing folder/file to be replaced on the next update, or
> at worst, a corrupted working copy that must be locally blown away
> in its entirety and a new working copy checked out.
>
> My experiences.

If the OP wants to not have a versioned folder in their working copy.. that is a fully different question.

In that case you need to use a sparse checkout. Here is how to do it in TSVN (I tested this is seems to work).

Right click on the folder in question and choose "Update to revision..." chose the update depth of "Exclude". This will remove that folder from your working copy. You can then delete it using your normal delete. Now, when you update it won't come back. However, if you go into the repo browser you will see that this folder is still there.

If you want it back, just check it out from the repo browser... choosing "Fully recursive".

Anyway... this is pretty much I think how you do this stuff in TSVN. The command line way to do it is outlined in this blog article:

http://blogs.open.collab.net/svn/2009/03/sparse-directories-now-with-exclusion.html

If I have misspoke I hope someone can correct me.

BOb

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2669030

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-10-07 20:38:52 CEST

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

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