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

[TSVN] Re: Deleteing obsolete branches from local machine.

From: Simon Large <slarge_at_blazepoint.co.uk>
Date: 2005-01-12 16:09:06 CET

Peter McNab wrote:
> Win 2000, TortoiseSVN 1.1.2
> After a bundle of work I find the local machine has a proliferation of
> branches, each containing now obsolete copies of my source code.
> Iv'e seen mention of deleting disused branches in the SVN docs.
> Is it safe to delete these from the local machine but not from the
> repository.?
> Can I just delete or do I need to use the TortoiseSVN delete. ?

That depends on what you want to do!

You can delete a whole working copy (Windows delete) any time you like
and it will have no effect on anything else. If you checked out a fresh
WC for some branch work which is now complete, you can delete the
redundant WC quite safely.

The SVN book talks about deleting obsolete branches simply as a means of
cleaning up your repository. For example, you create a branch to
implement a new feature. When it is all working you merge those mods
back into the trunk, and the branch is no longer needed because
everything is back on trunk. So you can delete that dev branch from the
repository. Of course it is not gone completely, just deleted from the
HEAD revision.

> When I do some work say on the trunk, and commit , will TortoiseSVN
> strive to re-create the missing branch folders and files?

If you checked out the branch _within_ your trunk WC, then no, you
cannot just Windows delete part of your WC. Check for modifications will
show it as missing and the next update will reconstruct it. If you don't
want that branch again (scenario above) then you can TSVN-delete it in
your WC and commit, or you can use repo browser to delete it from the
repo, then update your WC. Either way it will be removed from the repo

Normally your main WC just checks out /trunk and your branch WC just
checks out /branches/branch-for-feature-X. That way you have separate
WCs for trunk and branch giving a cleaner divide between the two. If you
have checked out the level above trunk, you end up with the trunk plus
all branches and tags in your WC, which is not usually desireable.


  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 Jan 12 16:10:19 2005

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